Skip to content

Commit

Permalink
fix read only flag for callcode
Browse files Browse the repository at this point in the history
  • Loading branch information
calbera committed May 16, 2023
1 parent d337874 commit 88564f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/vm/eips.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func ValidEip(eipNum int) bool {
_, ok := activators[eipNum]
return ok
}

func ActivateableEips() []string {
var nums []string
for k := range activators {
Expand Down
2 changes: 1 addition & 1 deletion core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte,
// It is allowed to call precompiles, even via delegatecall
if isPrecompile := evm.PrecompileManager.Has(addr); isPrecompile {
ret, gas, err = evm.PrecompileManager.Run(
evm, evm.PrecompileManager.Get(addr), input, caller.Address(), value, gas, true,
evm, evm.PrecompileManager.Get(addr), input, caller.Address(), value, gas, false,
)
} else {
addrCopy := addr
Expand Down

0 comments on commit 88564f8

Please sign in to comment.