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.
|
||||
func ActivePrecompiledContracts(rules params.Rules) PrecompiledContracts {
|
||||
switch {
|
||||
case rules.IsCancun:
|
||||
return PrecompiledContractsCancun
|
||||
case rules.IsBerlin:
|
||||
return PrecompiledContractsBerlin
|
||||
case rules.IsIstanbul:
|
||||
|
|
|
|||
Loading…
Reference in a new issue