MCPcopy Create free account
hub / github.com/Jesserc/gevm / Peek

Method Peek

gevm/stack.go:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (st *Stack) Peek() uint256.Int {
39 if len(st.data) == 0 {
40 panic(ErrStackUnderflow.Error())
41 }
42 ret := st.data[len(st.data)-1]
43 return ret
44}
45
46func (st Stack) ToString() string {
47 var d string

Callers 1

TestStackFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestStackFunction · 0.64