-
Notifications
You must be signed in to change notification settings - Fork 21
fixes e2e #2
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
fixes e2e #2
Changes from all commits
e958a98
43d2ac4
2b49c3e
efc4108
8b5a8dc
80ea857
4144b3d
9a3f515
041667a
bb990d9
08e6f7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package cmd | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
const ( | ||
Bech32PrefixAccAddr = "atone" | ||
) | ||
|
||
var ( | ||
// Bech32PrefixAccPub defines the Bech32 prefix of an account's public key. | ||
Bech32PrefixAccPub = Bech32PrefixAccAddr + "pub" | ||
Check warningCode scanning / CodeQL Directly using the bech32 constants Warning
Directly using the bech32 constants instead of the configuration values
|
||
// Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address. | ||
Bech32PrefixValAddr = Bech32PrefixAccAddr + "valoper" | ||
Check warningCode scanning / CodeQL Directly using the bech32 constants Warning
Directly using the bech32 constants instead of the configuration values
|
||
// Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key. | ||
Bech32PrefixValPub = Bech32PrefixAccAddr + "valoperpub" | ||
Check warningCode scanning / CodeQL Directly using the bech32 constants Warning
Directly using the bech32 constants instead of the configuration values
|
||
// Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address. | ||
Bech32PrefixConsAddr = Bech32PrefixAccAddr + "valcons" | ||
Check warningCode scanning / CodeQL Directly using the bech32 constants Warning
Directly using the bech32 constants instead of the configuration values
|
||
// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key. | ||
Bech32PrefixConsPub = Bech32PrefixAccAddr + "valconspub" | ||
Check warningCode scanning / CodeQL Directly using the bech32 constants Warning
Directly using the bech32 constants instead of the configuration values
|
||
) | ||
|
||
func InitSDKConfig() { | ||
cfg := sdk.GetConfig() | ||
cfg.SetBech32PrefixForAccount(Bech32PrefixAccAddr, Bech32PrefixAccPub) | ||
Check warningCode scanning / CodeQL Directly using the bech32 constants Warning
Directly using the bech32 constants instead of the configuration values
|
||
cfg.SetBech32PrefixForValidator(Bech32PrefixValAddr, Bech32PrefixValPub) | ||
cfg.SetBech32PrefixForConsensusNode(Bech32PrefixConsAddr, Bech32PrefixConsPub) | ||
cfg.Seal() | ||
} |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning