mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
feat: add precompiled contract addresses
This commit is contained in:
parent
fdcca189a9
commit
1ff697976e
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,8 @@ var PrecompiledContractsHomestead = map[common.Address]PrecompiledContract{
|
|||
common.BytesToAddress([]byte{2}): &sha256hash{},
|
||||
common.BytesToAddress([]byte{3}): &ripemd160hash{},
|
||||
common.BytesToAddress([]byte{4}): &dataCopy{},
|
||||
// Whitelist precompile at address 0x0100, no EOAs pre-whitelisted
|
||||
common.BytesToAddress([]byte{0x01, 0x00}): NewWhitelistPrecompile([]common.Address{}),
|
||||
}
|
||||
|
||||
// PrecompiledContractsByzantium contains the default set of pre-compiled Ethereum
|
||||
|
|
|
|||
Loading…
Reference in a new issue