You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @Stradivario. The argument to expectThrow should be a Promise as returned by truffle-contract function calls. The reason expectThrow is not working here is that web3.eth.sendTransaction returns a string containing the tx hash.
The Problem
this error can't be caught by expectThrow if execute "web3.eth.sendTransaction" (not contract'call or transaction)
e.g.
expectThrow(web3.eth.sendTransaction({gas: gas_amt, from: accounts[1], to: AAA.address,
value: web3.toWei("1", "Ether")}, ""))
The text was updated successfully, but these errors were encountered: