Closed jpitpol closed 3 years ago
i think the error message is obvious here. you don't have enough ERC20 funds to cover the deposit you are trying to make. you need to mint yourself some funds.
on the read.me file you dont specify minting. How do i should mint in node?
These commands fixed the issue
cash.mint(home, 150, {from: home}).then(console.log)
cash.approve(dbg.address, 150, {from: home}).then(console.log)
cash.balanceOf.call(home).then(function(result) {balance = result});
assert.equal(balance, 150, "Minting failed");
im publishing them for future problems by other non-professionals
Following the Readme file, i have deployed the zsc contract and initialised web3 First, in truffle i migrate and then in node i insert the following commands:
After these, i follow the command of client.deposit() with the following error: