feat: add new addresses to while listing contract

This commit is contained in:
aryansonid 2026-03-05 19:21:04 +05:30
parent 344ce84a43
commit efac930cf2

View file

@ -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 <http://www.gnu.org/licenses/>.
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