diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-12-24 11:27:38 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2019-01-15 02:49:44 +0800 |
commit | d1fd4421be0a7639b99b374bf04e57fac4e8a486 (patch) | |
tree | a97d00cbea579864f23803fa391e169814d93f6e /packages/utils/src/abi_encoder/evm_data_types | |
parent | b06f8239e1fe75703f88d34c0d225701406e28c2 (diff) | |
download | dexon-0x-contracts-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar dexon-0x-contracts-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.gz dexon-0x-contracts-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.bz2 dexon-0x-contracts-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.lz dexon-0x-contracts-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.xz dexon-0x-contracts-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.zst dexon-0x-contracts-d1fd4421be0a7639b99b374bf04e57fac4e8a486.zip |
Use string argument encoding with new encoder
Diffstat (limited to 'packages/utils/src/abi_encoder/evm_data_types')
-rw-r--r-- | packages/utils/src/abi_encoder/evm_data_types/method.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/method.ts b/packages/utils/src/abi_encoder/evm_data_types/method.ts index 212e2ca6b..44456cd0a 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/method.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/method.ts @@ -35,12 +35,6 @@ export class MethodDataType extends AbstractSetDataType { return value; } - public decodeAsArray(returndata: string, rules?: DecodingRules): any { - const value = this.decode(returndata, rules); - const valuesAsArray = _.isObject(value) ? _.values(value) : [value]; - return valuesAsArray; - } - public encodeReturnValues(value: any, rules?: EncodingRules): string { const returnData = this._returnDataType.encode(value, rules); return returnData; |