From 4dc4bbb472fcd0a06b563460a3c0de05bd85e23b Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Wed, 17 Apr 2019 22:58:34 +0200 Subject: [PATCH 1/2] Update txExecution.js --- remix-lib/src/execution/txExecution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix-lib/src/execution/txExecution.js b/remix-lib/src/execution/txExecution.js index 7f9670eae..5e20ddc2b 100644 --- a/remix-lib/src/execution/txExecution.js +++ b/remix-lib/src/execution/txExecution.js @@ -90,7 +90,7 @@ module.exports = { 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}".` } 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 constructor should be payable if you send value and the value you send should be less than your current balance.` } ret.error = true } else if (exceptionError === errorCode.STATIC_STATE_CHANGE) { From b1c2e2f116a48f5e293bbfdf3ef7d317ee0aec1e Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Wed, 17 Apr 2019 23:16:37 +0200 Subject: [PATCH 2/2] Update txExecution.js --- remix-lib/src/execution/txExecution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix-lib/src/execution/txExecution.js b/remix-lib/src/execution/txExecution.js index 5e20ddc2b..7c2bd24c1 100644 --- a/remix-lib/src/execution/txExecution.js +++ b/remix-lib/src/execution/txExecution.js @@ -90,7 +90,7 @@ module.exports = { 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}".` } else { - msg = `\tThe transaction has been reverted to the initial state.\nNote: The constructor should be payable if you send value and the value you send should be less than your current balance.` + 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 } else if (exceptionError === errorCode.STATIC_STATE_CHANGE) {