Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
func
(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
46
func
(st Stack) ToString() string {
47
var
d string
Callers
1
TestStack
Function · 0.80
Calls
no outgoing calls
Tested by
1
TestStack
Function · 0.64