Skip to content

Commit

Permalink
refactor(fungible): remove chain name from zrc20 name on gas deployme…
Browse files Browse the repository at this point in the history
…nt (#2516)
  • Loading branch information
lumtis authored Jul 19, 2024
1 parent 8019ea2 commit 68336ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions x/fungible/keeper/gas_coin_and_pool.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package keeper

import (
"fmt"
"math/big"

cosmoserrors "cosmossdk.io/errors"
Expand Down Expand Up @@ -35,7 +34,6 @@ func (k Keeper) SetupChainGasCoinAndPool(
if !found {
return ethcommon.Address{}, zetaObserverTypes.ErrSupportedChains
}
name := fmt.Sprintf("%s-%s", gasAssetName, chain.ChainName)

transferGasLimit := gasLimit

Expand All @@ -55,7 +53,7 @@ func (k Keeper) SetupChainGasCoinAndPool(

zrc20Addr, err := k.DeployZRC20Contract(
ctx,
name,
gasAssetName,
symbol,
decimals,
chain.ChainId,
Expand All @@ -68,7 +66,7 @@ func (k Keeper) SetupChainGasCoinAndPool(
}
ctx.EventManager().EmitEvent(
sdk.NewEvent(sdk.EventTypeMessage,
sdk.NewAttribute(name, zrc20Addr.String()),
sdk.NewAttribute(gasAssetName, zrc20Addr.String()),
),
)
err = k.SetGasCoin(ctx, big.NewInt(chain.ChainId), zrc20Addr)
Expand Down

0 comments on commit 68336ed

Please sign in to comment.