From 3f77272e71a40a195822a01b20ed6bdc5d8c917f Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 8 Jul 2019 20:45:13 +0200 Subject: [PATCH] fix(@cockpit): don't send invalid value to Smart Contract methods We've introduced a regression in https://github.com/embark-framework/embark/commit/536a4029ba1f544c8050c42eefeb439ff028f2f9 where the default `value` sent to payable Smart Contract methods is `-1`, resulting in errors as it's not a valid value. --- packages/embark-ui/src/components/ContractOverview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/embark-ui/src/components/ContractOverview.js b/packages/embark-ui/src/components/ContractOverview.js index a177f1b74..e3de6b8aa 100644 --- a/packages/embark-ui/src/components/ContractOverview.js +++ b/packages/embark-ui/src/components/ContractOverview.js @@ -37,7 +37,7 @@ class ContractFunction extends Component { optionsCollapse: false, functionCollapse: false, gasPriceCollapse: false, - value: -1, + value: 0, unitConvertError: null, unitConvertDirty: false };