aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/test/abi_encoder.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/order-utils/test/abi_encoder.ts')
-rw-r--r--packages/order-utils/test/abi_encoder.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/order-utils/test/abi_encoder.ts b/packages/order-utils/test/abi_encoder.ts
index f63dc804a..83ecc2f9a 100644
--- a/packages/order-utils/test/abi_encoder.ts
+++ b/packages/order-utils/test/abi_encoder.ts
@@ -686,6 +686,10 @@ export class SolArray extends DynamicDataType {
type: this.type,
name: `${this.getDataItem().name}[${idx.toString(10)}]`,
} as DataItem;
+ const components = this.getDataItem().components;
+ if (components !== undefined) {
+ childDataItem.components = components;
+ }
const child = DataTypeFactory.create(childDataItem, this);
this.elements.push(child);
if (child instanceof Pointer) {
@@ -706,6 +710,9 @@ export class SolArray extends DynamicDataType {
}*/
public assignValue(value: any[]) {
+ console.log('GREG'.repeat(15), JSON.stringify(value));
+
+
// Sanity check length
const valueLength = new BigNumber(value.length);
if (this.length !== SolArray.UNDEFINED_LENGTH && valueLength.equals(this.length) === false) {