From c163f8cab7be9317f0a17b97aed8ccf078d8016f Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:17:03 +0300 Subject: [PATCH 1/5] fix account.go --- HalbornCTF_Golang_Cosmos/app/helpers/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HalbornCTF_Golang_Cosmos/app/helpers/account.go b/HalbornCTF_Golang_Cosmos/app/helpers/account.go index b73d6da9..2bdd9374 100644 --- a/HalbornCTF_Golang_Cosmos/app/helpers/account.go +++ b/HalbornCTF_Golang_Cosmos/app/helpers/account.go @@ -15,7 +15,7 @@ func AddTestAddrs(app *gaiaapp.GaiaApp, ctx sdk.Context, accNum int, accCoins sd return addTestAddrs(app, ctx, accNum, accCoins, createRandomAccounts) } -// createRandomAccounts is a strategy used by addTestAddrs() in order to generated addresses in random order. +// createRandomAccounts is a strategy used by addTestAddrs() in order to generate addresses in random order. func createRandomAccounts(accNum int) []sdk.AccAddress { testAddrs := make([]sdk.AccAddress, accNum) for i := 0; i < accNum; i++ { From 65d6e79f85326c876dc89edbe6e44f4c8de7949c Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:17:39 +0300 Subject: [PATCH 2/5] fix doc.go --- HalbornCTF_Golang_Cosmos/app/params/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HalbornCTF_Golang_Cosmos/app/params/doc.go b/HalbornCTF_Golang_Cosmos/app/params/doc.go index 7c6035ca..0cb7042f 100644 --- a/HalbornCTF_Golang_Cosmos/app/params/doc.go +++ b/HalbornCTF_Golang_Cosmos/app/params/doc.go @@ -3,7 +3,7 @@ Package params defines the simulation parameters in the gaia. It contains the default weights used for each transaction used on the module's simulation. These weights define the chance for a transaction to be simulated at -any gived operation. +any given operation. You can repace the default values for the weights by providing a params.json file with the weights defined for each of the transaction operations: From 64eec24163dfad5be13a37afe7f8e624b392206e Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:19:42 +0300 Subject: [PATCH 3/5] fix export.go --- HalbornCTF_Golang_Cosmos/app/export.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HalbornCTF_Golang_Cosmos/app/export.go b/HalbornCTF_Golang_Cosmos/app/export.go index 0c000cdf..4d00255b 100644 --- a/HalbornCTF_Golang_Cosmos/app/export.go +++ b/HalbornCTF_Golang_Cosmos/app/export.go @@ -44,13 +44,13 @@ func (app *GaiaApp) ExportAppStateAndValidators( }, err } -// prepare for fresh start at zero height +// prepare for a fresh start at zero height // NOTE zero height genesis is a temporary feature which will be deprecated // in favour of export at a block height func (app *GaiaApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { applyAllowedAddrs := false - // check if there is a allowed address list + // check if there is an allowed address list if len(jailAllowedAddrs) > 0 { applyAllowedAddrs = true } From 97b68db27e3ac6456bfc7386fe6cefed0092d724 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:21:52 +0300 Subject: [PATCH 4/5] fix Makefile --- HalbornCTF_Golang_Cosmos/contrib/devtools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HalbornCTF_Golang_Cosmos/contrib/devtools/Makefile b/HalbornCTF_Golang_Cosmos/contrib/devtools/Makefile index 8cfcc905..417ebaf7 100644 --- a/HalbornCTF_Golang_Cosmos/contrib/devtools/Makefile +++ b/HalbornCTF_Golang_Cosmos/contrib/devtools/Makefile @@ -65,7 +65,7 @@ tools-stamp: $(RUNSIM) touch $@ # Install the runsim binary with a temporary workaround of entering an outside -# directory as the "go get" command ignores the -mod option and will polute the +# directory as the "go get" command ignores the -mod option and will pollute the # go.{mod, sum} files. # # ref: https://github.com/golang/go/issues/30515 From 1fca414c3ae4c1e36eba35eb00d71a482ebd2662 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:23:38 +0300 Subject: [PATCH 5/5] fix hal.proto --- HalbornCTF_Golang_Cosmos/proto/gaia/hal/v1beta1/hal.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HalbornCTF_Golang_Cosmos/proto/gaia/hal/v1beta1/hal.proto b/HalbornCTF_Golang_Cosmos/proto/gaia/hal/v1beta1/hal.proto index 0b06aa55..92ee7b00 100644 --- a/HalbornCTF_Golang_Cosmos/proto/gaia/hal/v1beta1/hal.proto +++ b/HalbornCTF_Golang_Cosmos/proto/gaia/hal/v1beta1/hal.proto @@ -72,7 +72,7 @@ message RedeemEntry { (gogoproto.moretags) = "yaml:\"address\"" ]; - // operations are redeem operations that are active. + // operations are redeemed operations that are active. repeated RedeemEntryOperation operations = 2 [ (gogoproto.moretags) = "yaml:\"operations\"", (gogoproto.nullable) = false