diff --git a/tests/helpers/handlers.nim b/tests/helpers/handlers.nim index 6dbf56a..24ec18c 100644 --- a/tests/helpers/handlers.nim +++ b/tests/helpers/handlers.nim @@ -17,6 +17,8 @@ import type Hash256 = w3.Hash256 + Address = w3.Address + FixedBytes[N: static int] = w3.FixedBytes[N] func decodeFromString(x: JsonString, T: type): T = let jsonBytes = JrpcConv.decode(x.string, string) diff --git a/tests/test_signed_tx.nim b/tests/test_signed_tx.nim index 8f8dbb8..c7ba98d 100644 --- a/tests/test_signed_tx.nim +++ b/tests/test_signed_tx.nim @@ -34,6 +34,9 @@ contract NumberStorage { } } ]# + +type Address = web3.Address + contract(NumberStorage): proc setNumber(number: UInt256) proc getNumber(): UInt256 {.view.}