Your Address:
Which coin is used in hongbao?
Total amount you'll give away:
The receivers:
What do you want say to the receivers?
Can only be accepted before (expire date):
The Hongbao URL is:
Security Audit
".replace(/@@/g, "><")
const blob = new Blob([data], {type: 'text/html'});
const elem = window.document.createElement('a');
elem.href = window.URL.createObjectURL(blob);
elem.download = filename;
document.body.appendChild(elem);
elem.click();
document.body.removeChild(elem);
}
function saveTxt(filename, urls) {
const blob = new Blob([urls], {type: 'text/plain'});
const elem = window.document.createElement('a');
elem.href = window.URL.createObjectURL(blob);
elem.download = filename;
document.body.appendChild(elem);
elem.click();
document.body.removeChild(elem);
}
window.onload = init;
document.onclick = function() {
if(window.AlertDlg) {
window.AlertDlg.destroy();
delete window.AlertDlg;
}
}
async function deploy() {
const abi = [ "constructor() public" ];
const bytecode = ""
const provider = new ethers.providers.Web3Provider(window.ethereum)
try {
const signer = provider.getSigner()
const factory = new ethers.ContractFactory(abi, bytecode, signer)
const contract = await factory.deploy();
console.log("address:", contract.address)
const receipt = await contract.deployTransaction.wait();
console.log(receipt)
} catch(e) {
alert("Error! "+e.toString())
}
}