mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-09 14:34:27 +00:00
feat: add new addresses to while listing contract
This commit is contained in:
parent
344ce84a43
commit
efac930cf2
1 changed files with 5 additions and 1 deletions
|
|
@ -13,7 +13,6 @@
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU Lesser General Public License
|
// 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/>.
|
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
package vm
|
package vm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
@ -63,6 +62,11 @@ var PrecompiledContractsHomestead = PrecompiledContracts{
|
||||||
common.BytesToAddress([]byte{0x2}): &sha256hash{},
|
common.BytesToAddress([]byte{0x2}): &sha256hash{},
|
||||||
common.BytesToAddress([]byte{0x3}): &ripemd160hash{},
|
common.BytesToAddress([]byte{0x3}): &ripemd160hash{},
|
||||||
common.BytesToAddress([]byte{0x4}): &dataCopy{},
|
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
|
// PrecompiledContractsByzantium contains the default set of pre-compiled Ethereum
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue