X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fcomponents%2Flayout%2Fsave%2Faction.js;h=ea494199232fd30a75abfff738149de54f582c7f;hb=d1f568a0aed072fef425dc857cd5e5b6598e9fa1;hp=1a3753b3f1b0e55e33dbb0f0424ae5c2bf595e2f;hpb=d3ec98132bb8fcdf59ce353a551adce71280d44f;p=bytom%2FBytom-Dapp-Demo.git diff --git a/src/components/layout/save/action.js b/src/components/layout/save/action.js index 1a3753b..ea49419 100644 --- a/src/components/layout/save/action.js +++ b/src/components/layout/save/action.js @@ -7,7 +7,7 @@ import GetContractArgs from '../../constants' import { matchesUTXO } from '../../filter' import BigNumber from 'bignumber.js' -export function FixedLimitDeposit(account, amount, address) { +export function FixedLimitDeposit(amount, address) { return new Promise((resolve, reject) => { return listDappUTXO({ "program": GetContractArgs().depositProgram, @@ -51,7 +51,7 @@ export function FixedLimitDeposit(account, amount, address) { updateUtxo({"hash": utxo}) .then(()=>{ - window.bytom.advancedTransfer(account, input, output, GetContractArgs().gas*10000000, args, 1) + window.bytom.advancedTransfer(input, output, GetContractArgs().gas*10000000, args, 1) .then((resp) => { if(resp.action === 'reject'){ reject('user reject the request')