MCPcopy Create free account
hub / github.com/CPChain/chain / exec

Method exec

tests/vm_test_util.go:117–121  ·  view source on GitHub ↗
(statedb *state.StateDB, vmconfig vm.Config)

Source from the content-addressed store, hash-verified

115}
116
117func (t *VMTest) exec(statedb *state.StateDB, vmconfig vm.Config) ([]byte, uint64, error) {
118 evm := t.newEVM(statedb, vmconfig)
119 e := t.json.Exec
120 return evm.Call(vm.AccountRef(e.Caller), e.Address, e.Data, e.GasLimit, e.Value)
121}
122
123func (t *VMTest) newEVM(statedb *state.StateDB, vmconfig vm.Config) *vm.EVM {
124 initialCall := true

Callers 1

RunMethod · 0.95

Calls 2

newEVMMethod · 0.95
CallMethod · 0.65

Tested by

no test coverage detected