Skip to content

Commit

Permalink
lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Villaquiranm committed Oct 22, 2024
1 parent d49ed91 commit b4dc49d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gnovm/stdlibs/std/native.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package std

import (
"github.com/gnolang/gno/gnovm/pkg/gnolang"
gno "github.com/gnolang/gno/gnovm/pkg/gnolang"
"github.com/gnolang/gno/tm2/pkg/bech32"
"github.com/gnolang/gno/tm2/pkg/crypto"
Expand Down Expand Up @@ -161,7 +160,7 @@ func X_decodeBech32(addr string) (prefix string, bytes [20]byte, ok bool) {

func X_assertCallerIsRealm(m *gno.Machine) {
frame := m.Frames[m.NumFrames()-2]
if path := frame.LastPackage.PkgPath; !gnolang.IsRealmPath(path) {
if path := frame.LastPackage.PkgPath; !gno.IsRealmPath(path) {
m.Panic(typedString("caller is not a realm"))
}

Check warning on line 165 in gnovm/stdlibs/std/native.go

View check run for this annotation

Codecov / codecov/patch

gnovm/stdlibs/std/native.go#L161-L165

Added lines #L161 - L165 were not covered by tests
}
Expand Down

0 comments on commit b4dc49d

Please sign in to comment.