From 1c42b62be11aeb2f56a6be39f0799ff96b72f227 Mon Sep 17 00:00:00 2001 From: Alex Forshtat Date: Sun, 11 Aug 2024 18:48:49 +0200 Subject: [PATCH] Remove EntryPoint precompile form the EVM --- core/vm/contracts.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 1898779b04..8e0f846775 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -109,8 +109,6 @@ var PrecompiledContractsCancun = map[common.Address]PrecompiledContract{ common.BytesToAddress([]byte{0x8}): &bn256PairingIstanbul{}, common.BytesToAddress([]byte{0x9}): &blake2F{}, common.BytesToAddress([]byte{0xa}): &kzgPointEvaluation{}, - - common.BytesToAddress([]byte{0x75, 0x60}): &rip7560EntryPoint{}, } // PrecompiledContractsPrague contains the set of pre-compiled Ethereum @@ -137,19 +135,6 @@ var PrecompiledContractsPrague = map[common.Address]PrecompiledContract{ common.BytesToAddress([]byte{0x13}): &bls12381MapG2{}, } -// rip7560EntryPoint does not really have any code and simply returns '1' whenever it is called -type rip7560EntryPoint struct{} - -func (r *rip7560EntryPoint) RequiredGas(input []byte) uint64 { - return 0 -} - -func (r *rip7560EntryPoint) Run(input []byte) ([]byte, error) { - byteRet := make([]byte, 32) - byteRet[31] = 1 - return byteRet, nil -} - var PrecompiledContractsBLS = PrecompiledContractsPrague var PrecompiledContractsVerkle = PrecompiledContractsPrague