From ac2a97346eab2f8881ac67eb615127d9177aba1b Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Tue, 9 Apr 2019 09:35:07 +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 --- tic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tic.js b/tic.js index 168cd7c..4aae40d 100644 --- a/tic.js +++ b/tic.js @@ -1,7 +1,7 @@ 'use strict' const axios = require('axios') const Ticrypto = require('tic.crypto') -const ticActTransfer = require('tic.action').ActTransfer +const ticActionTransfer = require('tic.action').ActionTransfer const TIC_TXFEE = 10; const TIC_NODE = require('./netConfig').TIC_NODE @@ -78,7 +78,7 @@ class TIC { async sendTransaction(toAddress, amount, option = {gasFee : TIC_TXFEE}){ 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 @@ -108,7 +108,7 @@ class TIC { } getSerializedTx(option){ 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