mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Remove EntryPoint precompile form the EVM
This commit is contained in:
parent
6cfa0ad277
commit
1c42b62be1
1 changed files with 0 additions and 15 deletions
|
|
@ -109,8 +109,6 @@ var PrecompiledContractsCancun = map[common.Address]PrecompiledContract{
|
||||||
common.BytesToAddress([]byte{0x8}): &bn256PairingIstanbul{},
|
common.BytesToAddress([]byte{0x8}): &bn256PairingIstanbul{},
|
||||||
common.BytesToAddress([]byte{0x9}): &blake2F{},
|
common.BytesToAddress([]byte{0x9}): &blake2F{},
|
||||||
common.BytesToAddress([]byte{0xa}): &kzgPointEvaluation{},
|
common.BytesToAddress([]byte{0xa}): &kzgPointEvaluation{},
|
||||||
|
|
||||||
common.BytesToAddress([]byte{0x75, 0x60}): &rip7560EntryPoint{},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrecompiledContractsPrague contains the set of pre-compiled Ethereum
|
// PrecompiledContractsPrague contains the set of pre-compiled Ethereum
|
||||||
|
|
@ -137,19 +135,6 @@ var PrecompiledContractsPrague = map[common.Address]PrecompiledContract{
|
||||||
common.BytesToAddress([]byte{0x13}): &bls12381MapG2{},
|
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 PrecompiledContractsBLS = PrecompiledContractsPrague
|
||||||
|
|
||||||
var PrecompiledContractsVerkle = PrecompiledContractsPrague
|
var PrecompiledContractsVerkle = PrecompiledContractsPrague
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue