We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 184bdf4 commit 2bcc767Copy full SHA for 2bcc767
gnovm/stdlibs/std/native.go
@@ -70,7 +70,7 @@ func getTimestamp(m *gno.Machine) int64 {
70
// getPrevFunctionNameFromTarget returns the last called function name (identifier) from the call stack.
71
func getPrevFunctionNameFromTarget(m *gno.Machine, targetFunc string) string {
72
for i := 0; i < len(m.Frames); i++ {
73
- if m.Frames[i].Func.Name == gno.Name(targetFunc) && i > 0 {
+ if m.Frames[i].Func != nil && m.Frames[i].Func.Name == gno.Name(targetFunc) && i > 0 {
74
return string(m.Frames[i-1].Func.Name)
75
}
76
0 commit comments