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,