Unverified Commit d4a87381 authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

Merge pull request #1164 from ethereum/error_msg

Better error msg
parents 8b22c7a4 b1c2e2f1
...@@ -90,7 +90,7 @@ module.exports = { ...@@ -90,7 +90,7 @@ module.exports = {
var reason = abiCoder.decode(['string'], returnData.slice(4))[0] var reason = abiCoder.decode(['string'], returnData.slice(4))[0]
msg = `\tThe transaction has been reverted to the initial state.\nReason provided by the contract: "${reason}".` msg = `\tThe transaction has been reverted to the initial state.\nReason provided by the contract: "${reason}".`
} else { } else {
msg = `\tThe transaction has been reverted to the initial state.\nNote: The constructor should be payable if you send value.` msg = `\tThe transaction has been reverted to the initial state.\nNote: The called function should be payable if you send value and the value you send should be less than your current balance.`
} }
ret.error = true ret.error = true
} else if (exceptionError === errorCode.STATIC_STATE_CHANGE) { } else if (exceptionError === errorCode.STATIC_STATE_CHANGE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment