Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Nov 2, 2023
1 parent fb51a9f commit 534f96b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/ownable/ownable.gno
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (o *Ownable) TransferOwnership(newOwner std.Address) error {
return nil
}

// DropOwnership Removes the owner, effectively disabling any owner-related actions
// DropOwnership removes the owner, effectively disabling any owner-related actions
// Top-level usage: disables all only-owner actions/functions,
// Embedded usage: behaves like a burn functionality, removing the owner from the struct
func (o *Ownable) DropOwnership() error {
Expand Down
10 changes: 5 additions & 5 deletions examples/gno.land/p/demo/ownable/ownable_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestNew(t *testing.T) {
}
}

func TestGetOwner(t *testing.T) {
func TestOwner(t *testing.T) {
std.TestSetOrigCaller(firstCaller)

result := New()
Expand Down Expand Up @@ -87,12 +87,12 @@ func TestErrUnauthorized(t *testing.T) {

err := o.TransferOwnership(firstCaller)
if err != ErrUnauthorized {
t.Fatalf("Shoud've been ErrUnauthorized, was %v", err)
t.Fatalf("Should've been ErrUnauthorized, was %v", err)
}

err = o.DropOwnership()
if err != ErrUnauthorized {
t.Fatalf("Shoud've been ErrUnauthorized, was %v", err)
t.Fatalf("Should've been ErrUnauthorized, was %v", err)
}
}

Expand All @@ -103,11 +103,11 @@ func TestErrInvalidAddress(t *testing.T) {

err := o.TransferOwnership("")
if err != ErrInvalidAddress {
t.Fatalf("Shoud've been ErrInvalidAddress, was %v", err)
t.Fatalf("Should've been ErrInvalidAddress, was %v", err)
}

err = o.TransferOwnership("10000000001000000000100000000010000000001000000000")
if err != ErrInvalidAddress {
t.Fatalf("Shoud've been ErrInvalidAddress, was %v", err)
t.Fatalf("Should've been ErrInvalidAddress, was %v", err)
}
}

0 comments on commit 534f96b

Please sign in to comment.