Skip to content

Commit

Permalink
Merge branch 'master' into feat/bech32-std-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Villaquiranm authored Dec 30, 2024
2 parents ba98ce1 + 597f3f5 commit bcca1f4
Show file tree
Hide file tree
Showing 15 changed files with 2,170 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- gnovm/**/*.gno
- examples/**/*.gno
- examples/**/gno.mod

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
8 changes: 8 additions & 0 deletions examples/gno.land/p/demo/grc/grc20/token.gno
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ func (tok *Token) RenderHome() string {
return str
}

// Getter returns a TokenGetter function that returns this token. This allows
// storing indirect pointers to a token in a remote realm.
func (tok *Token) Getter() TokenGetter {
return func() *Token {
return tok
}
}

// SpendAllowance decreases the allowance of the specified owner and spender.
func (led *PrivateLedger) SpendAllowance(owner, spender std.Address, amount uint64) error {
if !owner.IsValid() {
Expand Down
1 change: 1 addition & 0 deletions examples/gno.land/p/moul/typeutil/gno.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module gno.land/p/moul/typeutil
Loading

0 comments on commit bcca1f4

Please sign in to comment.