Skip to content

Commit

Permalink
refactor: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyuyuan committed Nov 3, 2021
1 parent 417b06c commit bbf11f5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/network/rest/restClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ export default class RestClient {
});
}


/**
* Get allowance by address
* @param asset Asset type. Only ONT or ONG.
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ export class SDK {
}

static makeMultiSignTransactionV2(asset: string, from: string, to: string, amount: string, gasPrice: string,
gasLimit: string, callback?: string) {
gasLimit: string, callback?: string) {
let fromAddress: Address;
let toAddress: Address;
try {
Expand Down
4 changes: 2 additions & 2 deletions src/smartcontract/nativevm/ontAssetTxBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import { TOKEN_TYPE } from '../../consts';
import { Address } from '../../crypto';
import { ERROR_CODE } from '../../error';
import { Transaction } from '../../transaction/transaction';
import { makeNativeContractTx } from '../../transaction/transactionUtils';
import { Transfer } from '../../transaction/transfer';
import { hex2VarBytes, hexstr2str, StringReader } from '../../utils';
import { makeNativeContractTx } from '../../transaction/transactionUtils';
import { buildNativeCodeScript } from '../abi/nativeVmParamsBuilder';
import Struct from './../abi/struct';
import { State } from './token';
Expand Down Expand Up @@ -327,7 +327,7 @@ export function makeWithdrawOngTx(from: Address, to: Address, amount: number | s
* @param gasLimit Gas limit
*/
export function makeWithdrawOngTxV2(from: Address, to: Address, amount: number | string, payer: Address,
gasPrice: string, gasLimit: string): Transfer {
gasPrice: string, gasLimit: string): Transfer {
verifyAmount(amount);
const num = new BigNumber(amount);

Expand Down
2 changes: 1 addition & 1 deletion src/transaction/transactionBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { comparePublicKeys } from './program';
import { buildWasmContractParam, createCodeParamsScript, serializeAbiFunction, writeVarBytes } from './scriptBuilder';
import { Transaction, TxType } from './transaction';

import {makeTransferTx, makeTransferTxV2} from '../smartcontract/nativevm/ontAssetTxBuilder';
import { makeTransferTx, makeTransferTxV2 } from '../smartcontract/nativevm/ontAssetTxBuilder';
import { buildGetDDOTx, buildRegisterOntidTx } from '../smartcontract/nativevm/ontidContractTxBuilder';
import { VmType } from './payload/deployCode';
import { TxSignature } from './txSignature';
Expand Down

0 comments on commit bbf11f5

Please sign in to comment.