Skip to content

Commit

Permalink
Resolve contract_dsl ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Jan 8, 2024
1 parent ab64553 commit a0cdfce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web3/contract_dsl.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import
std/[macros, strutils, options, json],
nimcrypto/keccak,
./[encoding, primitives],
./[encoding, primitives, eth_api_types],
stint,
stew/byteutils

Expand Down Expand Up @@ -286,9 +286,9 @@ macro contract*(cname: untyped, body: untyped): untyped =
result.add quote do:
type `cbident`* = object

template eventTopic*(T: type `cbident`): Topic =
template eventTopic*(T: type `cbident`): eth_api_types.Topic =
const r = keccak256Bytes(`signature`)
Topic(r)
eth_api_types.Topic(r)

proc subscribe[TSender](s: ContractInstance[`cname`, TSender],
t: type `cbident`,
Expand Down

0 comments on commit a0cdfce

Please sign in to comment.