From ad48f55aaa7e1c63a2259077a25ed0e56a1d90d2 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 12 Apr 2021 16:41:47 +0200 Subject: [PATCH] Update to latest versions of nitro and questionable --- dagger.nimble | 4 ++-- tests/dagger/bitswap/protobuf/testpayments.nim | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dagger.nimble b/dagger.nimble index e1b5c578..30274dc7 100644 --- a/dagger.nimble +++ b/dagger.nimble @@ -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" diff --git a/tests/dagger/bitswap/protobuf/testpayments.nim b/tests/dagger/bitswap/protobuf/testpayments.nim index c8b5fde4..f07775e9 100644 --- a/tests/dagger/bitswap/protobuf/testpayments.nim +++ b/tests/dagger/bitswap/protobuf/testpayments.nim @@ -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