Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
Signed-off-by: moul <[email protected]>
  • Loading branch information
moul committed Feb 24, 2025
1 parent 4da035f commit 6dbb920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/moul_authz.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ type prop struct {
var props []*prop

func HandlePrivilegedAction(title string, action authz.PrivilegedAction) error {
if std.PrevRealm().PkgPath() != "gno.land/r/testing/resource" {
if std.PreviousRealm().PkgPath() != "gno.land/r/testing/resource" {
return errors.New("unauthorized proposer")
}
props = append(props, &prop{title: title, action: action})
return nil
}

func ExecuteAction(index int) {
if std.PrevRealm().Addr() != "g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0" {
if std.PreviousRealm().Address() != "g1rfznvu6qfa0sc76cplk5wpqexvefqccjunady0" {
panic(errors.New("not alice"))
}
if err := props[index].action(); err != nil {
Expand Down

0 comments on commit 6dbb920

Please sign in to comment.