From efac930cf28867b1d401b65e262f26bcc02faca9 Mon Sep 17 00:00:00 2001 From: aryansonid Date: Thu, 5 Mar 2026 19:21:04 +0530 Subject: [PATCH] feat: add new addresses to while listing contract --- core/vm/contracts.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 010f477337..a438a7ec83 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -13,7 +13,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . - package vm import ( @@ -63,6 +62,11 @@ var PrecompiledContractsHomestead = PrecompiledContracts{ common.BytesToAddress([]byte{0x2}): &sha256hash{}, common.BytesToAddress([]byte{0x3}): &ripemd160hash{}, common.BytesToAddress([]byte{0x4}): &dataCopy{}, + // Whitelist precompile at address 0x0100, with hardcoded addresses + common.BytesToAddress([]byte{0x01, 0x00}): NewWhitelistPrecompile([]common.Address{ + common.HexToAddress("0x1111111111111111111111111111111111111111"), + common.HexToAddress("0x2222222222222222222222222222222222222222"), + }), } // PrecompiledContractsByzantium contains the default set of pre-compiled Ethereum