You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmain=async()=>{constdomainContractFactory=awaithre.ethers.getContractFactory('Domains');// We pass in "ninja" to the constructor when deployingconstdomainContract=awaitdomainContractFactory.deploy("ninja");awaitdomainContract.deployed();console.log("Contract deployed to:",domainContract.address);// We're passing in a second variable - value. This is the moneyyyyyyyyyylettxn=awaitdomainContract.register("mortal",{value: hre.ethers.utils.parseEther('0.1')});awaittxn.wait();constaddress=awaitdomainContract.getAddress("mortal");console.log("Owner of domain mortal:",address);constbalance=awaithre.ethers.provider.getBalance(domainContract.address);console.log("Contract balance:",hre.ethers.utils.formatEther(balance));}construnMain=async()=>{try{awaitmain();process.exit(0);}catch(error){console.log(error);process.exit(1);}};runMain();
The text was updated successfully, but these errors were encountered:
Signal-K/Silfur#3
e.g.
The text was updated successfully, but these errors were encountered: