aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract_templates/contract.handlebars
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-27 15:54:53 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-29 22:52:51 +0800
commitf8772d88505e59c3bd9669f949635205b80b1946 (patch)
tree171c10d80c94a07e2aeb9bddfad88dc713945d95 /packages/contract_templates/contract.handlebars
parentce2f4088641b17ecf043deca6714a4881cac4be0 (diff)
downloaddexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar
dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.gz
dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.bz2
dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.lz
dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.xz
dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.zst
dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.zip
Rename {{*}}ContractEventArgs to {{*}}EventArgs and append {{contractName}} to each event name (ERC721TransferEventArgs instead of TransferContractEventArgs)
Diffstat (limited to 'packages/contract_templates/contract.handlebars')
-rw-r--r--packages/contract_templates/contract.handlebars4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract_templates/contract.handlebars b/packages/contract_templates/contract.handlebars
index 997088c8f..544ca0305 100644
--- a/packages/contract_templates/contract.handlebars
+++ b/packages/contract_templates/contract.handlebars
@@ -10,9 +10,9 @@ import * as _ from 'lodash';
// tslint:enable:no-unused-variable
{{#if events}}
-export type {{contractName}}ContractEventArgs =
+export type {{contractName}}EventArgs =
{{#each events}}
- | {{name}}ContractEventArgs{{#if @last}};{{/if}}
+ | {{@root.contractName}}{{name}}EventArgs{{#if @last}};{{/if}}
{{/each}}
export enum {{contractName}}Events {