Skip to content

Commit

Permalink
gno fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MalekLahbib committed Sep 30, 2024
1 parent 97b213c commit 295ab0d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/gno.land/p/demo/grc/grc20/z_0_filetest.gno
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package main

import (
"std"
"gno.land/p/demo/testutils"

banker "gno.land/p/demo/grc/grc20"
"gno.land/p/demo/testutils"
)

const uint64_max = 1<<64 - 1

func main() {
b := banker.NewBanker("Dummy", "DUMMY", 6)
var owner = testutils.TestAddress("owner")
var owner = testutils.TestAddress("owner")
// Mint uint64_max - 1000 tokens for owner
b.Mint(owner, uint64_max - 1000)
b.Mint(owner, uint64_max-1000)
// Try to mint 1001 tokens for owner, should fail because it exceeds the limit
println(b.Mint(owner, 1001).Error())

Expand Down

0 comments on commit 295ab0d

Please sign in to comment.