From 96e3dc80ffca1b79f987592ce5acccf5e68b96d1 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 7f9670eaeb..5e20ddc2bc 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 87fc5dc2beea1487600959ffb9fe7ae64a28f1f5 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 5e20ddc2bc..7c2bd24c11 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) {