From 6c837492aa46ebb805f098ac1f04a38d7f2fe77e Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Fri, 27 Sep 2024 17:38:17 +0200 Subject: [PATCH] disambiguate new eth types --- tests/helpers/handlers.nim | 2 ++ tests/test_signed_tx.nim | 3 +++ 2 files changed, 5 insertions(+) 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.}