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

Method require

core/vm/stack.go:77–82  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

75}
76
77func (st *Stack) require(n int) error {
78 if st.len() < n {
79 return fmt.Errorf("stack underflow (%d <=> %d)", len(st.data), n)
80 }
81 return nil
82}
83
84// Print dumps the content of the stack
85func (st *Stack) Print() {

Callers 1

makeStackFuncFunction · 0.80

Calls 1

lenMethod · 0.95

Tested by

no test coverage detected