From 601d535b71c9cef206b93b318c6a0ba34132af10 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Thu, 11 Apr 2019 16:08:12 +0800 Subject: [PATCH] =?UTF-8?q?action.packMe(keypair)=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=9C=89=E4=B8=AA=E6=97=A0=E5=85=B3=E7=B4=A7=E8=A6=81=E7=9A=84?= =?UTF-8?q?=E5=B0=8F=E9=94=99=EF=BC=9A=E8=BE=93=E5=85=A5=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=98=AF=20{seckey,=20pubkey}=20=E5=8D=B3=E5=8F=AF=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81=E4=BC=A0=E5=85=A5=20address?= =?UTF-8?q?=EF=BC=8C=E5=9B=A0=E4=B8=BA=20address=20=E6=98=AF=20packMe=20?= =?UTF-8?q?=E5=86=85=E9=83=A8=E8=87=AA=E5=B7=B1=E6=A0=B9=E6=8D=AE=20pubkey?= =?UTF-8?q?=20=E7=94=9F=E6=88=90=E7=9A=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tic.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tic.js b/tic.js index 4aae40d..eb06fdc 100644 --- a/tic.js +++ b/tic.js @@ -111,13 +111,12 @@ class TIC { let action=new ticActionTransfer({ amount: parseInt(option.amount), toAddress: option.toAddress, - fee:option.fee||this._defaultFee + fee:option.fee||this._defaultFee, }) //sign for txBody use function packMe, which needs actor's keypair as parameter action.packMe({ - seckey: this.seckey, - pubkey: this.pubkey, - address: this.address + seckey: this.seckey, + pubkey: this.pubkey, }) return action }