testing the test page

This commit is contained in:
Johann Barbie
2023-07-25 14:23:03 +02:00
parent ca36dec0f6
commit 408cd44650
+5 -1
View File
@@ -60,6 +60,8 @@ async function approveMeme1() {
// console.log("approve", approve);
// }
// change this value to make yourself rich quick
async function mintToken() {
try {
var mint = await contractMeme1.value.methods
@@ -90,6 +92,8 @@ async function mintToken2() {
// console.log("totalSupply", totalSupply);
}
// 0.1 Meme will be sacrificed
async function sacrificeMeme() {
const allowance = await contractMeme1.value.methods
.allowance(web3.value.eth.Contract.defaultAccount, MemeBurnerJson.contractAddress)
@@ -97,7 +101,7 @@ async function sacrificeMeme() {
console.log("allowance", allowance);
var reward = await contractBurner.value.methods
.sacrificeMeme(Meme1Json.contractAddress, "100000000000000000")
.call({ from: web3.value.eth.Contract.defaultAccount });
.send({ from: web3.value.eth.Contract.defaultAccount });
console.log("reward", reward);
}
// console.log("balanceOf", contract.mint(10));