mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
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…
x
Reference in New Issue
Block a user