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

Function opSub

core/vm/instructions.go:48–54  ·  view source on GitHub ↗
(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack)

Source from the content-addressed store, hash-verified

46}
47
48func opSub(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
49 x, y := stack.pop(), stack.peek()
50 math.U256(y.Sub(x, y))
51
52 evm.interpreter.intPool.put(x)
53 return nil, nil
54}
55
56func opMul(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
57 x, y := stack.pop(), stack.pop()

Callers

nothing calls this directly

Calls 3

popMethod · 0.80
peekMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected