Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(examples): run 'make fmt' #3415

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
Loading