Skip to content

Commit

Permalink
docs: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Jul 3, 2024
1 parent ae3c8d6 commit 92eedc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _deploy/r/demo/emission/emission.gno
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import (
"gno.land/r/demo/gns"
)

// emissionAddr is the address from which GNS tokens will be emitted.
var emissionAddr std.Address = consts.EMISSION_ADDR

// EmitGns mints new GNS tokens to the emission address.
func EmitGns() {
gns.Mint(a2u(emissionAddr))
}
Expand Down
3 changes: 2 additions & 1 deletion _deploy/r/demo/gns_halving/gns.gno
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ func Mint(address pusers.AddressOrName) {
}
}

// ONLY FOR EMISSION TESTING, REMOVE THIS FUNCTION IN PRODUCTION
// XXX: Remove this
// ONLY FOR EMISSION TESTING
func TestSetLastMintedHeight(height int64) {
caller := std.PrevRealm().Addr()
if caller != consts.EMISSION_ADDR {
Expand Down

0 comments on commit 92eedc4

Please sign in to comment.