Skip to content

Commit

Permalink
linter cleanup (#8278)
Browse files Browse the repository at this point in the history
Co-authored-by: chainchad <[email protected]>
  • Loading branch information
jmank88 and chainchad authored Jan 19, 2023
1 parent 20bc44b commit 375bcba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions core/chains/evm/logpoller/log_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ func (lp *logPoller) Replay(ctx context.Context, fromBlock int64) error {
case <-ctx.Done():
return ErrReplayAbortedByClient
}
// Should never reach here.
return nil
}

func (lp *logPoller) Start(parentCtx context.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/ocr2vrf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func main() {
},
}

setVRFBeaconConfig(e, *beaconAddress, commands)
commands.setVRFBeaconConfig(e, *beaconAddress)
case "coordinator-set-producer":
cmd := flag.NewFlagSet("coordinator-set-producer", flag.ExitOnError)
coordinatorAddress := cmd.String("coordinator-address", "", "VRF coordinator contract address")
Expand Down
3 changes: 2 additions & 1 deletion core/scripts/ocr2vrf/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func setAuthorizedSenders(e helpers.Environment, forwarder common.Address, sende
f, err := authorized_forwarder.NewAuthorizedForwarder(forwarder, e.Ec)
helpers.PanicErr(err)
tx, err := f.SetAuthorizedSenders(e.Owner, senders)
helpers.PanicErr(err)
helpers.ConfirmTXMined(context.Background(), e.Ec, tx, e.ChainID)
}

Expand Down Expand Up @@ -181,7 +182,7 @@ func setDKGConfig(e helpers.Environment, dkgAddress string, c dkgSetConfigArgs)
helpers.ConfirmTXMined(context.Background(), e.Ec, tx, e.ChainID)
}

func setVRFBeaconConfig(e helpers.Environment, vrfBeaconAddr string, c vrfBeaconSetConfigArgs) {
func (c *vrfBeaconSetConfigArgs) setVRFBeaconConfig(e helpers.Environment, vrfBeaconAddr string) {
oracleIdentities := toOraclesIdentityList(
helpers.ParseAddressSlice(c.onchainPubKeys),
strings.Split(c.offchainPubKeys, ","),
Expand Down

0 comments on commit 375bcba

Please sign in to comment.