Skip to content

Commit

Permalink
update subnet sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Sep 5, 2024
1 parent f73fc8a commit e736dce
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions subnet/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/ava-labs/subnet-evm/commontype"
"github.com/ava-labs/subnet-evm/core"
"github.com/ava-labs/subnet-evm/params"
"github.com/ava-labs/subnet-evm/precompile/contracts/txallowlist"
"github.com/ethereum/go-ethereum/common"
)

Expand Down Expand Up @@ -221,21 +220,8 @@ func createEvmGenesis(
return nil, fmt.Errorf("genesis params precompiles cannot be empty")
}

if conf != nil && conf.GenesisPrecompiles[txallowlist.ConfigKey] != nil {
allowListCfg, ok := conf.GenesisPrecompiles[txallowlist.ConfigKey].(*txallowlist.Config)
if !ok {
return nil, fmt.Errorf(
"expected config of type txallowlist.AllowListConfig, but got %T",
allowListCfg,
)
}

if err := ensureAdminsHaveBalance(
allowListCfg.AdminAddresses,
allocation); err != nil {
return nil, err
}
}
conf.FeeConfig = subnetEVMParams.FeeConfig
conf.GenesisPrecompiles = subnetEVMParams.Precompiles

conf.ChainID = subnetEVMParams.ChainID

Expand Down

0 comments on commit e736dce

Please sign in to comment.