Skip to content

Commit

Permalink
[CCIP-3376] lint
Browse files Browse the repository at this point in the history
  • Loading branch information
valerii-kabisov-cll committed Sep 24, 2024
1 parent 5afd6f5 commit 02b6c8e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/services/relay/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ func (r *Relayer) NewCCIPCommitProvider(rargs commontypes.RelayArgs, pargs commo
// CCIPCommit reads only when source chain is Mantle, then reports to dest chain
// to minimize misconfigure risk, might make sense to wire Mantle only when Commit + Mantle + IsSourceProvider
if r.chain.Config().EVM().ChainType() == chaintype.ChainMantle && commitPluginConfig.IsSourceProvider {
mantleInterceptor, err := mantle.NewInterceptor(ctx, r.chain.Client())
if err != nil {
return nil, err
mantleInterceptor, iErr := mantle.NewInterceptor(ctx, r.chain.Client())
if iErr != nil {
return nil, iErr
}
feeEstimatorConfig.AddGasPriceInterceptor(mantleInterceptor)
}
Expand Down Expand Up @@ -495,9 +495,9 @@ func (r *Relayer) NewCCIPExecProvider(rargs commontypes.RelayArgs, pargs commont
// CCIPExec reads when dest chain is mantle, and uses it to calc boosting in batching
// to minimize misconfigure risk, make sense to wire Mantle only when Exec + Mantle + !IsSourceProvider
if r.chain.Config().EVM().ChainType() == chaintype.ChainMantle && !execPluginConfig.IsSourceProvider {
mantleInterceptor, err := mantle.NewInterceptor(ctx, r.chain.Client())
if err != nil {
return nil, err
mantleInterceptor, iErr := mantle.NewInterceptor(ctx, r.chain.Client())
if iErr != nil {
return nil, iErr
}
feeEstimatorConfig.AddGasPriceInterceptor(mantleInterceptor)
}
Expand Down

0 comments on commit 02b6c8e

Please sign in to comment.