Skip to content

Commit

Permalink
The contract event names should be accessible in modules that import …
Browse files Browse the repository at this point in the history
…the contract definition
  • Loading branch information
zah committed Jul 11, 2022
1 parent ae12813 commit dfa91e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3.nim
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ macro contract*(cname: untyped, body: untyped): untyped =
procTyWithRawData[1] = pragmas

result.add quote do:
type `cbident` = object
type `cbident`* = object

template eventTopic*(T: type `cbident`): string =
"0x" & toLowerAscii($keccak256.digest(`signature`))
Expand Down

0 comments on commit dfa91e3

Please sign in to comment.