diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-10 21:07:16 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-10 23:47:38 +0800 |
commit | 62f1430a2c53cb983c28f156bd0dd6409821ad5a (patch) | |
tree | 1d4dd271b4d3e4d596cc28fceb6c79e8047a35fb /packages/base-contract/src/index.ts | |
parent | 1dec6a442ed4bbc50a33c78fa5c47147a58f3ae1 (diff) | |
download | dexon-sol-tools-62f1430a2c53cb983c28f156bd0dd6409821ad5a.tar dexon-sol-tools-62f1430a2c53cb983c28f156bd0dd6409821ad5a.tar.gz dexon-sol-tools-62f1430a2c53cb983c28f156bd0dd6409821ad5a.tar.bz2 dexon-sol-tools-62f1430a2c53cb983c28f156bd0dd6409821ad5a.tar.lz dexon-sol-tools-62f1430a2c53cb983c28f156bd0dd6409821ad5a.tar.xz dexon-sol-tools-62f1430a2c53cb983c28f156bd0dd6409821ad5a.tar.zst dexon-sol-tools-62f1430a2c53cb983c28f156bd0dd6409821ad5a.zip |
Add a comment
Diffstat (limited to 'packages/base-contract/src/index.ts')
-rw-r--r-- | packages/base-contract/src/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts index 2b39029d5..8da3c2e71 100644 --- a/packages/base-contract/src/index.ts +++ b/packages/base-contract/src/index.ts @@ -48,6 +48,8 @@ export class BaseContract { if (!_.isUndefined(constructorAbiIfExists)) { return constructorAbiIfExists; } else { + // If the constructor is not explicitly defined, it won't be included in the ABI. It is + // still callable however, so we construct what the ABI would look like were it to exist. const defaultConstructorAbi: ConstructorAbi = { type: AbiType.Constructor, stateMutability: 'nonpayable', |