Skip to content

Commit a0cdfce

Browse files
committed
Resolve contract_dsl ambiguity
1 parent ab64553 commit a0cdfce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web3/contract_dsl.nim

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import
22
std/[macros, strutils, options, json],
33
nimcrypto/keccak,
4-
./[encoding, primitives],
4+
./[encoding, primitives, eth_api_types],
55
stint,
66
stew/byteutils
77

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

289-
template eventTopic*(T: type `cbident`): Topic =
289+
template eventTopic*(T: type `cbident`): eth_api_types.Topic =
290290
const r = keccak256Bytes(`signature`)
291-
Topic(r)
291+
eth_api_types.Topic(r)
292292

293293
proc subscribe[TSender](s: ContractInstance[`cname`, TSender],
294294
t: type `cbident`,

0 commit comments

Comments
 (0)