Skip to content

Commit

Permalink
Fix issue with using a pointer to an iteration variable of a range loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mycodecrafting committed Sep 25, 2024
1 parent e5c5013 commit 4af3f1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grpc/execution/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ func NewExecutionServiceServerV1Alpha2(eth *eth.Ethereum) (*ExecutionServiceServ
return nil, errors.New("astria bridge sender address must be set for bridged ERC20 assets")
}

bridgeAddresses[cfg.BridgeAddress] = &cfg
bridgeCfg := cfg
bridgeAddresses[cfg.BridgeAddress] = &bridgeCfg
bridgeAllowedAssets[cfg.AssetDenom] = struct{}{}
if cfg.Erc20Asset == nil {
log.Info("bridge for sequencer native asset initialized", "bridgeAddress", cfg.BridgeAddress, "assetDenom", cfg.AssetDenom)
Expand Down

0 comments on commit 4af3f1f

Please sign in to comment.