mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
core/vm: Upgrade EVMC to version 6.0.0
This commit is contained in:
parent
a54ce7f361
commit
3e020f09fd
1 changed files with 8 additions and 9 deletions
|
|
@ -26,7 +26,6 @@ import (
|
||||||
"github.com/ethereum/evmc/bindings/go/evmc"
|
"github.com/ethereum/evmc/bindings/go/evmc"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
|
||||||
"github.com/ethereum/go-ethereum/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
)
|
)
|
||||||
|
|
@ -285,16 +284,16 @@ func (evm *EVMC) Run(contract *Contract, input []byte, readOnly bool) (ret []byt
|
||||||
output, gasLeft, err := evm.instance.Execute(
|
output, gasLeft, err := evm.instance.Execute(
|
||||||
&HostContext{evm.env, contract},
|
&HostContext{evm.env, contract},
|
||||||
getRevision(evm.env),
|
getRevision(evm.env),
|
||||||
contract.Address(),
|
|
||||||
contract.Caller(),
|
|
||||||
common.BigToHash(contract.value),
|
|
||||||
input,
|
|
||||||
crypto.Keccak256Hash(contract.Code),
|
|
||||||
int64(contract.Gas),
|
|
||||||
evm.env.depth-1,
|
|
||||||
kind,
|
kind,
|
||||||
evm.readOnly,
|
evm.readOnly,
|
||||||
contract.Code)
|
evm.env.depth-1,
|
||||||
|
int64(contract.Gas),
|
||||||
|
contract.Address(),
|
||||||
|
contract.Caller(),
|
||||||
|
input,
|
||||||
|
common.BigToHash(contract.value),
|
||||||
|
contract.Code,
|
||||||
|
common.Hash{})
|
||||||
|
|
||||||
contract.Gas = uint64(gasLeft)
|
contract.Gas = uint64(gasLeft)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue