From 610e6e83aca5bf228a5d672c65f61f86df0eaab4 Mon Sep 17 00:00:00 2001 From: Johann Barbie Date: Sat, 24 Jun 2023 21:07:22 +0200 Subject: [PATCH] testing the test page --- src/views/TestView.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/TestView.vue b/src/views/TestView.vue index 5633e02..8410dc6 100644 --- a/src/views/TestView.vue +++ b/src/views/TestView.vue @@ -57,9 +57,11 @@ 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.mint(10).send({ from: web3.value.eth.Contract.defaultAccount }); + var mint = await contractMeme1.value.methods.mint("1000000000000000").send({ from: web3.value.eth.Contract.defaultAccount }); console.log("mint", mint); } catch (error) { console.log(error); @@ -70,6 +72,8 @@ async function mintToken() { // 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) @@ -77,7 +81,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));