New answers tagged

0

you are missing the OPTIONS on your web3! Try this: const OPTIONS = { defaultBlock: "latest", transactionConfirmationBlocks: 1, transactionBlockTimeout: 5 } const web3 = new Web3(ganache.provider(), null, OPTIONS);


0

Testing your smart contracts with JavaScript And the result: Contract: FundRaise ✓ has an owner (38ms ) ✓ is able to accept funds (234ms ) 2 passing (473ms ) Handsomely. This is a process that is systematically carried out to cover smart contracts with a test written in JavaScript. Just keep doing it until all the conditions of a smart contract are ...


Top 50 recent answers are included