Skip to content

Commit

Permalink
fix(examples): run 'make fmt' (#3415)
Browse files Browse the repository at this point in the history
Fixes the CI
Addresses #3410

---------

Signed-off-by: moul <[email protected]>
  • Loading branch information
moul authored Dec 27, 2024
1 parent 3fd5571 commit b6a4aab
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 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
2 changes: 1 addition & 1 deletion examples/gno.land/r/nemanya/config/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/nemanya/config
module gno.land/r/nemanya/config
2 changes: 1 addition & 1 deletion examples/gno.land/r/nemanya/home/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/nemanya/home
module gno.land/r/nemanya/home
28 changes: 14 additions & 14 deletions examples/gno.land/r/nemanya/home/home.gno
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ type Project struct {
}

var (
textArt string
aboutMe string
sponsorInfo string
socialLinks map[string]SocialLink
gnoProjects map[string]Project
otherProjects map[string]Project
textArt string
aboutMe string
sponsorInfo string
socialLinks map[string]SocialLink
gnoProjects map[string]Project
otherProjects map[string]Project
totalDonations std.Coins
)

Expand Down Expand Up @@ -266,15 +266,15 @@ func Withdraw() string {
panic(config.ErrUnauthorized)
}

banker := std.GetBanker(std.BankerTypeRealmSend)
realmAddress := std.GetOrigPkgAddr()
coins := banker.GetCoins(realmAddress)
banker := std.GetBanker(std.BankerTypeRealmSend)
realmAddress := std.GetOrigPkgAddr()
coins := banker.GetCoins(realmAddress)

if len(coins) == 0 {
return "No coins available to withdraw"
}
if len(coins) == 0 {
return "No coins available to withdraw"
}

banker.SendCoins(realmAddress, config.Address(), coins)
banker.SendCoins(realmAddress, config.Address(), coins)

return "Successfully withdrew all coins to config address"
return "Successfully withdrew all coins to config address"
}

0 comments on commit b6a4aab

Please sign in to comment.