Update to latest versions of nitro and questionable
This commit is contained in:
parent
d9e5bc934f
commit
ad48f55aaa
|
@ -13,7 +13,7 @@ requires "nim >= 1.2.6",
|
|||
"secp256k1",
|
||||
"stew#head",
|
||||
"protobufserialization >= 0.2.0 & < 0.3.0",
|
||||
"https://github.com/status-im/nim-nitro >= 0.1.0 & < 0.2.0",
|
||||
"questionable >= 0.4.3 & < 0.5.0",
|
||||
"https://github.com/status-im/nim-nitro >= 0.2.0 & < 0.3.0",
|
||||
"questionable >= 0.5.0 & < 0.6.0",
|
||||
"upraises >= 0.1.0 & < 0.2.0",
|
||||
"asynctest >= 0.2.1 & < 0.3.0"
|
||||
|
|
|
@ -22,13 +22,13 @@ suite "pricing protobuf messages":
|
|||
check message.price == @(price.toBytesBE)
|
||||
|
||||
test "decodes recipient of payments":
|
||||
check Pricing.init(message)?.address == address.some
|
||||
check Pricing.init(message).?address == address.some
|
||||
|
||||
test "decodes address of asset":
|
||||
check Pricing.init(message)?.asset == asset.some
|
||||
check Pricing.init(message).?asset == asset.some
|
||||
|
||||
test "decodes price":
|
||||
check Pricing.init(message)?.price == price.some
|
||||
check Pricing.init(message).?price == price.some
|
||||
|
||||
test "fails to decode when address has incorrect number of bytes":
|
||||
var incorrect = message
|
||||
|
|
Loading…
Reference in New Issue