fix: default value for trx data

This commit is contained in:
Richard Ramos 2020-12-09 12:01:51 -04:00 committed by Iuri Matias
parent 4d2e396b7f
commit c2f2b7e6cd
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ Rectangle {
var acc = walletModel.dappBrowserAccount
const value = utilsModel.wei2Eth(request.payload.params[0].value, 18);
const sendDialog = sendTransactionModalComponent.createObject(browserWindow, {
trxData:request.payload.params[0].data,
trxData: request.payload.params[0].data || "",
selectedAccount: {
name: acc.name,
address: request.payload.params[0].from,

View File

@ -11,7 +11,7 @@ Item {
property var toAccount
property var asset
property var amount
property string trxData: "0x"
property string trxData: ""
property string currency: "USD"
property var gas
height: content.height