From 5b08e319a8ecc8b44f56c2d664aa037dfd252470 Mon Sep 17 00:00:00 2001 From: Raymond Sukanto Date: Thu, 5 Sep 2024 08:50:36 -0400 Subject: [PATCH] update subnet sdk --- subnet/subnet.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/subnet/subnet.go b/subnet/subnet.go index 706ee24..77cc2fb 100644 --- a/subnet/subnet.go +++ b/subnet/subnet.go @@ -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 { @@ -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))