From 1d6518eaaa6a8a702f909a1ca18f9eec3484447d Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 6 Apr 2021 11:23:48 -0600 Subject: [PATCH] use `new` instad of `init` --- beacon_chain/networking/eth2_network.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/networking/eth2_network.nim b/beacon_chain/networking/eth2_network.nim index 7049340d6..c9997fd5f 100644 --- a/beacon_chain/networking/eth2_network.nim +++ b/beacon_chain/networking/eth2_network.nim @@ -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)