wording udappUI

pull/5370/head
yann300 5 years ago
parent 1a0992e2ce
commit 80363f7a46
  1. 8
      src/app/ui/sendTxCallbacks.js

@ -7,12 +7,12 @@ const typeConversion = remixLib.execution.typeConversion
const Web3 = require('web3') const Web3 = require('web3')
module.exports = { module.exports = {
getCallBacksWithContext: (udapp, executionContext) => { getCallBacksWithContext: (udappUI, executionContext) => {
let callbacks = {} let callbacks = {}
callbacks.confirmationCb = confirmationCb callbacks.confirmationCb = confirmationCb
callbacks.continueCb = continueCb callbacks.continueCb = continueCb
callbacks.promptCb = promptCb callbacks.promptCb = promptCb
callbacks.udapp = udapp callbacks.udappUI = udappUI
callbacks.executionContext = executionContext callbacks.executionContext = executionContext
return callbacks return callbacks
} }
@ -51,7 +51,7 @@ const confirmationCb = function (network, tx, gasEstimation, continueTxExecution
return continueTxExecution(null) return continueTxExecution(null)
} }
var amount = Web3.utils.fromWei(typeConversion.toInt(tx.value), 'ether') var amount = Web3.utils.fromWei(typeConversion.toInt(tx.value), 'ether')
var content = confirmDialog(tx, amount, gasEstimation, self.udapp, var content = confirmDialog(tx, amount, gasEstimation, self.udappUI,
(gasPrice, cb) => { (gasPrice, cb) => {
let txFeeText, priceStatus let txFeeText, priceStatus
// TODO: this try catch feels like an anti pattern, can/should be // TODO: this try catch feels like an anti pattern, can/should be
@ -86,7 +86,7 @@ const confirmationCb = function (network, tx, gasEstimation, continueTxExecution
content, content,
{ label: 'Confirm', { label: 'Confirm',
fn: () => { fn: () => {
self.udapp.udapp.config.setUnpersistedProperty( self.udappUI.udapp.config.setUnpersistedProperty(
'doNotShowTransactionConfirmationAgain', 'doNotShowTransactionConfirmationAgain',
content.querySelector('input#confirmsetting').checked content.querySelector('input#confirmsetting').checked
) )

Loading…
Cancel
Save