Fix MultiAddress.init(PeerID) compilation problem.
This commit is contained in:
parent
833e8c9406
commit
76fee97724
|
@ -665,7 +665,7 @@ proc init*(mtype: typedesc[MultiAddress], protocol: MultiCodec,
|
||||||
value: PeerID): MultiAddress {.inline.} =
|
value: PeerID): MultiAddress {.inline.} =
|
||||||
## Initialize MultiAddress object from protocol id ``protocol`` and peer id
|
## Initialize MultiAddress object from protocol id ``protocol`` and peer id
|
||||||
## ``value``.
|
## ``value``.
|
||||||
init(mtype, protocol, cast[seq[byte]](value))
|
init(mtype, protocol, value.data)
|
||||||
|
|
||||||
proc init*(mtype: typedesc[MultiAddress], protocol: MultiCodec): MultiAddress =
|
proc init*(mtype: typedesc[MultiAddress], protocol: MultiCodec): MultiAddress =
|
||||||
## Initialize MultiAddress object from protocol id ``protocol``.
|
## Initialize MultiAddress object from protocol id ``protocol``.
|
||||||
|
|
Loading…
Reference in New Issue