Skip to content

Commit

Permalink
disambiguate new eth types (#161)
Browse files Browse the repository at this point in the history
* disambiguate new eth types

* fix requires
  • Loading branch information
arnetheduck authored Sep 29, 2024
1 parent 7d12b76 commit 7703740
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/helpers/handlers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions tests/test_signed_tx.nim
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ contract NumberStorage {
}
}
]#

type Address = web3.Address

contract(NumberStorage):
proc setNumber(number: UInt256)
proc getNumber(): UInt256 {.view.}
Expand Down
6 changes: 3 additions & 3 deletions web3.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7703740

Please sign in to comment.