From db6806f6ae77472225ac95c49cfc016dfe2d4a30 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 3 Feb 2020 21:47:42 +0100 Subject: [PATCH] fix "determineGasPrice" reference --- src/app/tabs/runTab/contractDropdown.js | 2 +- src/app/tabs/runTab/recorder.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index 0d5ae4fe3b..4f85544577 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -210,7 +210,7 @@ class ContractDropdownUI { return continueTxExecution(null) } const amount = this.blockchain.fromWei(tx.value, true, 'ether') - const content = confirmDialog(tx, amount, gasEstimation, null, this.blockchain.determineGasFees(tx), this.blockchain.determineGasPrice) + const content = confirmDialog(tx, amount, gasEstimation, null, this.blockchain.determineGasFees(tx), this.blockchain.determineGasPrice.bind(this.blockchain)) modalDialog('Confirm transaction', content, { label: 'Confirm', diff --git a/src/app/tabs/runTab/recorder.js b/src/app/tabs/runTab/recorder.js index 04e4692fe3..7bfd5f6053 100644 --- a/src/app/tabs/runTab/recorder.js +++ b/src/app/tabs/runTab/recorder.js @@ -83,7 +83,7 @@ class RecorderUI { return continueTxExecution(null) } const amount = this.blockchain.fromWei(tx.value, true, 'ether') - const content = confirmDialog(tx, amount, gasEstimation, null, this.blockchain.determineGasFees(tx), this.blockchain.determineGasPrice) + const content = confirmDialog(tx, amount, gasEstimation, null, this.blockchain.determineGasFees(tx), this.blockchain.determineGasPrice.bind(this.blockchain)) modalDialog('Confirm transaction', content, { label: 'Confirm',