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 e736dce commit 5b08e31
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 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/ethereum/go-ethereum/common"
)

type SubnetParams struct {
Expand Down Expand Up @@ -244,24 +243,6 @@ func createEvmGenesis(
return prettyJSON.Bytes(), nil
}

func ensureAdminsHaveBalance(admins []common.Address, alloc core.GenesisAlloc) error {
if len(admins) < 1 {
return nil
}

for _, admin := range admins {
// we can break at the first admin who has a non-zero balance
if bal, ok := alloc[admin]; ok &&
bal.Balance != nil &&
bal.Balance.Uint64() > uint64(0) {
return nil
}
}
return errors.New(
"none of the addresses in the transaction allow list precompile have any tokens allocated to them. Currently, no address can transact on the network. Airdrop some funds to one of the allow list addresses to continue",
)
}

func vmID(vmName string) (ids.ID, error) {
if len(vmName) > 32 {
return ids.Empty, fmt.Errorf("VM name must be <= 32 bytes, found %d", len(vmName))
Expand Down

0 comments on commit 5b08e31

Please sign in to comment.