trufflesuite / truffle-hdwallet-provider

HD Wallet-enabled Web3 provider
MIT License
400 stars 167 forks source link

truffleAssert with truffle-hdwallet-provider #101

Open Aleione opened 5 years ago

Aleione commented 5 years ago

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:

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