use `new` instad of `init`

This commit is contained in:
Dmitriy Ryajov 2021-04-06 11:23:48 -06:00 committed by zah
parent ce48644b3b
commit 1d6518eaaa
1 changed files with 1 additions and 1 deletions

View File

@ -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)