Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

truffleAssert with truffle-hdwallet-provider #101

Open
Aleione opened this issue Sep 13, 2019 · 0 comments
Open

truffleAssert with truffle-hdwallet-provider #101

Aleione opened this issue Sep 13, 2019 · 0 comments

Comments

@Aleione
Copy link

Aleione commented Sep 13, 2019

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:
- 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?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant