aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/test/abi_encoder/return_values_test.ts
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2019-01-10 02:56:29 +0800
committerGreg Hysen <greg.hysen@gmail.com>2019-01-15 02:49:44 +0800
commit0b87aec9c695b44107891bd8f4ce18e511a19608 (patch)
tree4176244093fbe032692d5d21a394b9216bf3a1ee /packages/utils/test/abi_encoder/return_values_test.ts
parent6892f929fb0c996b8c8a99a17686aa232dc266d9 (diff)
downloaddexon-0x-contracts-0b87aec9c695b44107891bd8f4ce18e511a19608.tar
dexon-0x-contracts-0b87aec9c695b44107891bd8f4ce18e511a19608.tar.gz
dexon-0x-contracts-0b87aec9c695b44107891bd8f4ce18e511a19608.tar.bz2
dexon-0x-contracts-0b87aec9c695b44107891bd8f4ce18e511a19608.tar.lz
dexon-0x-contracts-0b87aec9c695b44107891bd8f4ce18e511a19608.tar.xz
dexon-0x-contracts-0b87aec9c695b44107891bd8f4ce18e511a19608.tar.zst
dexon-0x-contracts-0b87aec9c695b44107891bd8f4ce18e511a19608.zip
Renamed decode rule `structsAsObjects` to `shouldConvertStructsToObjects`
Diffstat (limited to 'packages/utils/test/abi_encoder/return_values_test.ts')
-rw-r--r--packages/utils/test/abi_encoder/return_values_test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/utils/test/abi_encoder/return_values_test.ts b/packages/utils/test/abi_encoder/return_values_test.ts
index 18837fe77..a745ed814 100644
--- a/packages/utils/test/abi_encoder/return_values_test.ts
+++ b/packages/utils/test/abi_encoder/return_values_test.ts
@@ -15,7 +15,7 @@ describe('ABI Encoder: Return Value Encoding/Decoding', () => {
// Decode return value
const method = new AbiEncoder.Method(ReturnValueAbis.noReturnValues);
const returnValue = '0x';
- const decodedReturnValue = method.decodeReturnValues(returnValue, { structsAsObjects: false });
+ const decodedReturnValue = method.decodeReturnValues(returnValue, { shouldConvertStructsToObjects: false });
const expectedDecodedReturnValue: any[] = [];
expect(decodedReturnValue).to.be.deep.equal(expectedDecodedReturnValue);
});
@@ -24,7 +24,7 @@ describe('ABI Encoder: Return Value Encoding/Decoding', () => {
const method = new AbiEncoder.Method(ReturnValueAbis.singleStaticReturnValue);
const returnValue = ['0x01020304'];
const encodedReturnValue = method.encodeReturnValues(returnValue, encodingRules);
- const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { structsAsObjects: false });
+ const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { shouldConvertStructsToObjects: false });
// Validate decoded return value
expect(decodedReturnValue).to.be.deep.equal(returnValue);
});
@@ -33,7 +33,7 @@ describe('ABI Encoder: Return Value Encoding/Decoding', () => {
const method = new AbiEncoder.Method(ReturnValueAbis.multipleStaticReturnValues);
const returnValue = ['0x01020304', '0x05060708'];
const encodedReturnValue = method.encodeReturnValues(returnValue, encodingRules);
- const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { structsAsObjects: false });
+ const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { shouldConvertStructsToObjects: false });
// Validate decoded return value
expect(decodedReturnValue).to.be.deep.equal(returnValue);
});
@@ -42,7 +42,7 @@ describe('ABI Encoder: Return Value Encoding/Decoding', () => {
const method = new AbiEncoder.Method(ReturnValueAbis.singleDynamicReturnValue);
const returnValue = ['0x01020304'];
const encodedReturnValue = method.encodeReturnValues(returnValue, encodingRules);
- const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { structsAsObjects: false });
+ const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { shouldConvertStructsToObjects: false });
// Validate decoded return value
expect(decodedReturnValue).to.be.deep.equal(returnValue);
});
@@ -51,7 +51,7 @@ describe('ABI Encoder: Return Value Encoding/Decoding', () => {
const method = new AbiEncoder.Method(ReturnValueAbis.multipleDynamicReturnValues);
const returnValue = ['0x01020304', '0x05060708'];
const encodedReturnValue = method.encodeReturnValues(returnValue, encodingRules);
- const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { structsAsObjects: false });
+ const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { shouldConvertStructsToObjects: false });
// Validate decoded return value
expect(decodedReturnValue).to.be.deep.equal(returnValue);
});
@@ -60,7 +60,7 @@ describe('ABI Encoder: Return Value Encoding/Decoding', () => {
const method = new AbiEncoder.Method(ReturnValueAbis.mixedStaticAndDynamicReturnValues);
const returnValue = ['0x01020304', '0x05060708'];
const encodedReturnValue = method.encodeReturnValues(returnValue, encodingRules);
- const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { structsAsObjects: false });
+ const decodedReturnValue = method.decodeReturnValues(encodedReturnValue, { shouldConvertStructsToObjects: false });
// Validate decoded return value
expect(decodedReturnValue).to.be.deep.equal(returnValue);
});