aboutsummaryrefslogtreecommitdiffstats
path: root/packages/base-contract
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-12 06:14:19 +0800
committerGitHub <noreply@github.com>2018-06-12 06:14:19 +0800
commitbc0ae6be318a15bf8670a6da9a59d9bdb12cadae (patch)
treed4d2ffbac9270c332b1e788c2ac39829a5e89359 /packages/base-contract
parente0c0584c593e3d948652c1cb58f39042c5b8f488 (diff)
parentc03119d10ad0f2633a78980bd939c65fedfd0531 (diff)
downloaddexon-sol-tools-bc0ae6be318a15bf8670a6da9a59d9bdb12cadae.tar
dexon-sol-tools-bc0ae6be318a15bf8670a6da9a59d9bdb12cadae.tar.gz
dexon-sol-tools-bc0ae6be318a15bf8670a6da9a59d9bdb12cadae.tar.bz2
dexon-sol-tools-bc0ae6be318a15bf8670a6da9a59d9bdb12cadae.tar.lz
dexon-sol-tools-bc0ae6be318a15bf8670a6da9a59d9bdb12cadae.tar.xz
dexon-sol-tools-bc0ae6be318a15bf8670a6da9a59d9bdb12cadae.tar.zst
dexon-sol-tools-bc0ae6be318a15bf8670a6da9a59d9bdb12cadae.zip
Merge pull request #684 from 0xProject/fix/contract-wrappers/exchangeTransferSimulator
Move ExchangeTransferSimulator & OrderValidationUtils to Order-Utils
Diffstat (limited to 'packages/base-contract')
-rw-r--r--packages/base-contract/src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts
index a46d985f5..cb9042415 100644
--- a/packages/base-contract/src/index.ts
+++ b/packages/base-contract/src/index.ts
@@ -37,7 +37,7 @@ export class BaseContract {
protected static _lowercaseAddress(type: string, value: string): string {
return type === 'address' ? value.toLowerCase() : value;
}
- protected static _bigNumberToString(type: string, value: any): any {
+ protected static _bigNumberToString(_type: string, value: any): any {
return _.isObject(value) && value.isBigNumber ? value.toString() : value;
}
protected static _lookupConstructorAbi(abi: ContractAbi): ConstructorAbi {
@@ -60,7 +60,7 @@ export class BaseContract {
return defaultConstructorAbi;
}
}
- protected static _bnToBigNumber(type: string, value: any): any {
+ protected static _bnToBigNumber(_type: string, value: any): any {
return _.isObject(value) && value._bn ? new BigNumber(value.toString()) : value;
}
protected static async _applyDefaultsToTxDataAsync<T extends Partial<TxData | TxDataPayable>>(