i have a problem with truffle-hdwallet-provider during truffle test with truffleAssert.reverts command. On local ganache blockchain test is ok because revert string is the same of that indicate in javascript test code. When i run test with the same code on ropsten using truffle-hdwallet-provider module, it returns this error:
AssertionError: Expected to fail with SafeMath: subtraction overflow, but failed with: StatusError: Transaction: 0x9b3b35d6d42be4c8fb17e8e7c540a4090a1d36e0ac7b60f5888662b3c9d19385 exited with an error (status 0).
Please check that the transaction:
satisfies all conditions set by Solidity require statements.
does not trigger a Solidity revert statement.
It seems that revert error string is not that indicated in solidity code but a transaction error generic.
How can i fix this, please?
Hi,
i have a problem with truffle-hdwallet-provider during truffle test with truffleAssert.reverts command. On local ganache blockchain test is ok because revert string is the same of that indicate in javascript test code. When i run test with the same code on ropsten using truffle-hdwallet-provider module, it returns this error:
AssertionError: Expected to fail with SafeMath: subtraction overflow, but failed with: StatusError: Transaction: 0x9b3b35d6d42be4c8fb17e8e7c540a4090a1d36e0ac7b60f5888662b3c9d19385 exited with an error (status 0). Please check that the transaction:
require
statements.revert
statement.It seems that revert error string is not that indicated in solidity code but a transaction error generic. How can i fix this, please?
Thanks