disambiguate new eth types
This commit is contained in:
parent
0cc03e67dd
commit
6c837492aa
|
@ -17,6 +17,8 @@ import
|
||||||
|
|
||||||
type
|
type
|
||||||
Hash256 = w3.Hash256
|
Hash256 = w3.Hash256
|
||||||
|
Address = w3.Address
|
||||||
|
FixedBytes[N: static int] = w3.FixedBytes[N]
|
||||||
|
|
||||||
func decodeFromString(x: JsonString, T: type): T =
|
func decodeFromString(x: JsonString, T: type): T =
|
||||||
let jsonBytes = JrpcConv.decode(x.string, string)
|
let jsonBytes = JrpcConv.decode(x.string, string)
|
||||||
|
|
|
@ -34,6 +34,9 @@ contract NumberStorage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]#
|
]#
|
||||||
|
|
||||||
|
type Address = web3.Address
|
||||||
|
|
||||||
contract(NumberStorage):
|
contract(NumberStorage):
|
||||||
proc setNumber(number: UInt256)
|
proc setNumber(number: UInt256)
|
||||||
proc getNumber(): UInt256 {.view.}
|
proc getNumber(): UInt256 {.view.}
|
||||||
|
|
Loading…
Reference in New Issue