diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-12-04 08:53:01 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-01-08 02:31:11 +0800 |
commit | c6ff77bdd8ea04e04a9be4ae2e5dc30afc89665b (patch) | |
tree | 802ea7e8e4861d97b8d5f42c2616912b00685e4e /packages/utils/src/abi_encoder/abstract_data_types | |
parent | 492e0ae34546e0020c2c6a694ce60feef5ebf695 (diff) | |
download | dexon-sol-tools-c6ff77bdd8ea04e04a9be4ae2e5dc30afc89665b.tar dexon-sol-tools-c6ff77bdd8ea04e04a9be4ae2e5dc30afc89665b.tar.gz dexon-sol-tools-c6ff77bdd8ea04e04a9be4ae2e5dc30afc89665b.tar.bz2 dexon-sol-tools-c6ff77bdd8ea04e04a9be4ae2e5dc30afc89665b.tar.lz dexon-sol-tools-c6ff77bdd8ea04e04a9be4ae2e5dc30afc89665b.tar.xz dexon-sol-tools-c6ff77bdd8ea04e04a9be4ae2e5dc30afc89665b.tar.zst dexon-sol-tools-c6ff77bdd8ea04e04a9be4ae2e5dc30afc89665b.zip |
Add prefix to names of properties in EncodingRules and DecodingRules
Diffstat (limited to 'packages/utils/src/abi_encoder/abstract_data_types')
-rw-r--r-- | packages/utils/src/abi_encoder/abstract_data_types/types/set.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils/src/abi_encoder/abstract_data_types/types/set.ts b/packages/utils/src/abi_encoder/abstract_data_types/types/set.ts index 089d04659..00059a4b6 100644 --- a/packages/utils/src/abi_encoder/abstract_data_types/types/set.ts +++ b/packages/utils/src/abi_encoder/abstract_data_types/types/set.ts @@ -62,7 +62,7 @@ export abstract class AbstractSetDataType extends DataType { // Create a new scope in the calldata, before descending into the members of this set. calldata.startScope(); let value: any[] | object; - if (rules.structsAsObjects && !this._isArray) { + if (rules.shouldConvertStructsToObjects && !this._isArray) { // Construct an object with values for each member of the set. value = {}; _.each(this._memberIndexByName, (idx: number, key: string) => { |