diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 23:05:03 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 23:05:03 +0800 |
commit | cde52b10b161e0672519fe77817e3b7486137e72 (patch) | |
tree | 41461e0340ffe25def3f96e3f77a79a914401e64 /packages/typed-contracts-templates | |
parent | 43983f1bb3660a7a7650d947de4bc1a2a9fb8c09 (diff) | |
download | dexon-sol-tools-cde52b10b161e0672519fe77817e3b7486137e72.tar dexon-sol-tools-cde52b10b161e0672519fe77817e3b7486137e72.tar.gz dexon-sol-tools-cde52b10b161e0672519fe77817e3b7486137e72.tar.bz2 dexon-sol-tools-cde52b10b161e0672519fe77817e3b7486137e72.tar.lz dexon-sol-tools-cde52b10b161e0672519fe77817e3b7486137e72.tar.xz dexon-sol-tools-cde52b10b161e0672519fe77817e3b7486137e72.tar.zst dexon-sol-tools-cde52b10b161e0672519fe77817e3b7486137e72.zip |
Introduce separate ContextData type and rework it
Diffstat (limited to 'packages/typed-contracts-templates')
-rw-r--r-- | packages/typed-contracts-templates/contract.mustache | 2 | ||||
-rw-r--r-- | packages/typed-contracts-templates/partials/return_type.mustache | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/typed-contracts-templates/contract.mustache b/packages/typed-contracts-templates/contract.mustache index 057088e8b..cb3bb3631 100644 --- a/packages/typed-contracts-templates/contract.mustache +++ b/packages/typed-contracts-templates/contract.mustache @@ -12,7 +12,7 @@ import {promisify} from '../../utils/promisify'; import {BaseContract} from './base_contract'; export class {{contractName}}Contract extends BaseContract { -{{#each methodAbis}} +{{#each methods}} {{#this.constant}} {{> call contractName=../contractName}} {{/this.constant}} diff --git a/packages/typed-contracts-templates/partials/return_type.mustache b/packages/typed-contracts-templates/partials/return_type.mustache index 5366c8fb7..383961a40 100644 --- a/packages/typed-contracts-templates/partials/return_type.mustache +++ b/packages/typed-contracts-templates/partials/return_type.mustache @@ -1,6 +1,6 @@ -{{#outputs.singleReturnValue}} +{{#singleReturnValue}} {{#returnType outputs.0.type}}{{/returnType}} -{{/outputs.singleReturnValue}} -{{^outputs.singleReturnValue}} +{{/singleReturnValue}} +{{^singleReturnValue}} [{{#each outputs}}{{#returnType type}}{{/returnType}}{{#unless @last}}, {{/unless}}{{/each}}] -{{/outputs.singleReturnValue}} +{{/singleReturnValue}} |