need help with testing
I run contract using Remix on local net - all good , but when I using Truffle to run it I get the error

1) Contract: VotingContract
"before each" hook for "should add a new candidate":
Error: VM Exception while processing transaction: invalid opcode

contract not created , all gas limit is used
in fact
votingContract = await VotingContract.new();
is not working

Jan 1, 2024, 8:08 PM
is it truffle?
Jan 4, 2024, 10:05 PM
Yes
Jan 5, 2024, 8:49 AM
Please switch to Foundry🙏
Jan 5, 2024, 8:53 AM

© 2024 Draquery.com All rights reserved.