Skip to content

Commit

Permalink
core/vm: use contract Value fn instead of field
Browse files Browse the repository at this point in the history
Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Mar 10, 2020
1 parent c93eb46 commit a4bd333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/vm/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ type EVMC struct {
}

var (
evmModule *evmc.Instance
ewasmModule *evmc.Instance
evmModule *evmc.Instance
ewasmModule *evmc.Instance
evmcModuleError = errors.New("EVMC internal error")
)

Expand Down Expand Up @@ -367,7 +367,7 @@ func (evm *EVMC) Run(contract *Contract, input []byte, readOnly bool) (ret []byt
contract.Address(),
contract.Caller(),
input,
common.BigToHash(contract.value),
common.BigToHash(contract.Value()),
contract.Code,
common.Hash{})

Expand Down

0 comments on commit a4bd333

Please sign in to comment.