mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Add cancun to precompiled contracts
This commit is contained in:
parent
16165591c2
commit
7fff1c40ef
1 changed files with 2 additions and 0 deletions
|
|
@ -162,6 +162,8 @@ func (p PrecompiledContracts) Copy() PrecompiledContracts {
|
||||||
// ActivePrecompiledContracts returns precompiled contracts enabled with the current configuration.
|
// ActivePrecompiledContracts returns precompiled contracts enabled with the current configuration.
|
||||||
func ActivePrecompiledContracts(rules params.Rules) PrecompiledContracts {
|
func ActivePrecompiledContracts(rules params.Rules) PrecompiledContracts {
|
||||||
switch {
|
switch {
|
||||||
|
case rules.IsCancun:
|
||||||
|
return PrecompiledContractsCancun
|
||||||
case rules.IsBerlin:
|
case rules.IsBerlin:
|
||||||
return PrecompiledContractsBerlin
|
return PrecompiledContractsBerlin
|
||||||
case rules.IsIstanbul:
|
case rules.IsIstanbul:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue