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].} =
|
rng: ref BrHmacDrbgContext): Switch {.raises: [Defect, CatchableError].} =
|
||||||
try:
|
try:
|
||||||
SwitchBuilder
|
SwitchBuilder
|
||||||
.init()
|
.new()
|
||||||
.withPrivateKey(seckey)
|
.withPrivateKey(seckey)
|
||||||
.withAddress(address)
|
.withAddress(address)
|
||||||
.withRng(rng)
|
.withRng(rng)
|
||||||
|
|
Loading…
Reference in New Issue