disambiguate new eth types

This commit is contained in:
Jacek Sieka 2024-09-27 17:38:17 +02:00
parent 0cc03e67dd
commit 6c837492aa
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -34,6 +34,9 @@ contract NumberStorage {
}
}
]#
type Address = web3.Address
contract(NumberStorage):
proc setNumber(number: UInt256)
proc getNumber(): UInt256 {.view.}