Skip to content

Commit

Permalink
refactor(fungible): remove chain name from zrc20 name on gas deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jul 19, 2024
1 parent 8019ea2 commit 3f65fd0
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 3f65fd0

Please sign in to comment.