重命名 ActTransfer 为 ActionTransfer,贯彻“全称命名”的规范,以尽可能消灭所有可能的歧义。
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user