Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
linhpn99 committed Aug 8, 2024
1 parent e3e1865 commit da19bbd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gnovm/tests/files/std5_stdlibs.gno
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ func main() {
println(caller1)
caller2 := std.GetCallerAt(2)
println(caller2)
caller3 := std.GetCallerAt(3)
println(caller3)
}

// Stacktrace:
// panic: frame not found
// callerAt<VPBlock(3,44)>(n<VPBlock(1,0)>)
// gonative:std.callerAt
// std<VPBlock(2,0)>.GetCallerAt(2)
// std/native.gno:44
// main<VPBlock(1,0)>()
// main/files/std5_stdlibs.gno:10

// Error:
// frame not found
13 changes: 13 additions & 0 deletions gnovm/tests/files/std8_stdlibs.gno
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,18 @@ func main() {
testutils.WrapCall(inner)
}

// Stacktrace:
// panic: frame not found
// callerAt<VPBlock(3,44)>(n<VPBlock(1,0)>)
// gonative:std.callerAt
// std<VPBlock(2,0)>.GetCallerAt(4)
// std/native.gno:44
// fn<VPBlock(1,0)>()
// main/files/std8_stdlibs.gno:16
// testutils<VPBlock(2,1)>.WrapCall(inner<VPBlock(3,0)>)
// gno.land/p/demo/testutils/misc.gno:5
// main<VPBlock(1,1)>()
// main/files/std8_stdlibs.gno:21

// Error:
// frame not found

0 comments on commit da19bbd

Please sign in to comment.