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.} diff --git a/web3.nimble b/web3.nimble index 3aaaa7b..1147b0f 100644 --- a/web3.nimble +++ b/web3.nimble @@ -14,10 +14,10 @@ description = "These are the humble beginnings of library similar to web3.[js|py license = "MIT or Apache License 2.0" ### Dependencies -requires "nim >= 1.6.0" +requires "nim >= 2.0.0" requires "chronicles" -requires "chronos#head" -requires "bearssl#head" +requires "chronos" +requires "bearssl" requires "eth" requires "faststreams" requires "json_rpc"