From 43a825c7aa691e728c9945015de0cf75159ee0fe Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Tue, 9 Apr 2019 09:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20ActTransfer=20?= =?UTF-8?q?=E4=B8=BA=20ActionTransfer=EF=BC=8C=E8=B4=AF=E5=BD=BB=E2=80=9C?= =?UTF-8?q?=E5=85=A8=E7=A7=B0=E5=91=BD=E5=90=8D=E2=80=9D=E7=9A=84=E8=A7=84?= =?UTF-8?q?=E8=8C=83=EF=BC=8C=E4=BB=A5=E5=B0=BD=E5=8F=AF=E8=83=BD=E6=B6=88?= =?UTF-8?q?=E7=81=AD=E6=89=80=E6=9C=89=E5=8F=AF=E8=83=BD=E7=9A=84=E6=AD=A7?= =?UTF-8?q?=E4=B9=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/tic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/tic.js b/src/services/tic.js index 5d6609c..e8c359a 100644 --- a/src/services/tic.js +++ b/src/services/tic.js @@ -2,7 +2,7 @@ import axios from 'axios' import * as Ticrypto from 'tic.crypto' import * as ticAction from 'tic.action' -const TicActTransfer = ticAction.ActTransfer +const TicActionTransfer = ticAction.ActionTransfer const TIC_TXFEE = 10 @@ -91,7 +91,7 @@ export class TIC { if (!toAddress || !amount) { throw new Error('ERROR:RequiredParamsMissing') } // amount cannot be zero - let action = new TicActTransfer({ + let action = new TicActionTransfer({ amount: parseInt(amount), toAddress: toAddress, fee: option.gasFee, @@ -122,7 +122,7 @@ export class TIC { if (!option.toAddress || !option.amount) { throw new Error('ERROR:RequiredParamsMissing') } - let action = new TicActTransfer({ + let action = new TicActionTransfer({ amount: parseInt(option.amount), toAddress: option.toAddress, fee: option.fee || this._defaultFee,