From 9c1633bf871156429e042f1fe6207a00e95a6b13 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni Date: Sat, 31 Oct 2020 13:20:29 +0900 Subject: [PATCH] fix ValidIpAddress multiaddress init return type --- libp2p/multiaddress.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/multiaddress.nim b/libp2p/multiaddress.nim index e313fba45..1edb3a268 100644 --- a/libp2p/multiaddress.nim +++ b/libp2p/multiaddress.nim @@ -858,7 +858,7 @@ proc init*(mtype: typedesc[MultiAddress], address: ValidIpAddress, res.data.write(transportProto.mcodec) res.data.writeArray(toBytesBE(uint16(port))) res.data.finish() - ok(res) + res proc init*(mtype: typedesc[MultiAddress], address: TransportAddress, protocol = IPPROTO_TCP): MaResult[MultiAddress] =