MCPcopy Create free account
hub / github.com/Sifchain/sifnode / SetConfig

Function SetConfig

scripts/cli_tests/main.go:26–34  ·  view source on GitHub ↗
(seal bool)

Source from the content-addressed store, hash-verified

24)
25
26func SetConfig(seal bool) {
27 config := sdk.GetConfig()
28 config.SetBech32PrefixForAccount(AccountAddressPrefix, AccountPubKeyPrefix)
29 config.SetBech32PrefixForValidator(ValidatorAddressPrefix, ValidatorPubKeyPrefix)
30 config.SetBech32PrefixForConsensusNode(ConsNodeAddressPrefix, ConsNodePubKeyPrefix)
31 if seal {
32 config.Seal()
33 }
34}
35
36type TestCase interface {
37 GetMsgAndArgs(iArgs CommonArgs) (sdk.Msg, Args)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected