use `new` instad of `init`
This commit is contained in:
parent
ce48644b3b
commit
1d6518eaaa
|
@ -1534,7 +1534,7 @@ proc newBeaconSwitch*(config: BeaconNodeConf, seckey: PrivateKey,
|
|||
rng: ref BrHmacDrbgContext): Switch {.raises: [Defect, CatchableError].} =
|
||||
try:
|
||||
SwitchBuilder
|
||||
.init()
|
||||
.new()
|
||||
.withPrivateKey(seckey)
|
||||
.withAddress(address)
|
||||
.withRng(rng)
|
||||
|
|
Loading…
Reference in New Issue