-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(x/asset): Custom mintable, burnable precompiles [WIP] #17
base: trinity/msg-for-new-asset-module
Are you sure you want to change the base?
Conversation
Spec update
update spec
for _, m := range app.ModuleManager.Modules { | ||
if moduleWithName, ok := m.(module.HasName); ok { | ||
moduleName := moduleWithName.Name() | ||
if appModule, ok := moduleWithName.(appmodule.AppModule); ok { | ||
modules[moduleName] = appModule | ||
} | ||
} | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning
func NewIntegrationCoordinator(t *testing.T, preConfiguredChains []network.Network) *IntegrationCoordinator { | ||
coord := &ibctesting.Coordinator{ | ||
T: t, | ||
CurrentTime: time.Now(), |
Check warning
Code scanning / CodeQL
Calling the system time Warning test
for _, chain := range c.coord.Chains { | ||
c.coord.CommitNBlocks(chain, 1) | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning test
// that uses the default sdk address prefix ('cosmos') | ||
// Update the prefix configs to use that prefix | ||
cfg := sdk.GetConfig() | ||
cfg.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub) |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning test
// that uses the default sdk address prefix ('cosmos') | ||
// Update the prefix configs to use that prefix | ||
cfg := sdk.GetConfig() | ||
cfg.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub) |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning test
// Update the prefix configs to use that prefix | ||
cfg := sdk.GetConfig() | ||
cfg.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub) | ||
cfg.SetBech32PrefixForValidator(sdk.Bech32PrefixValAddr, sdk.Bech32PrefixValPub) |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning test
cfg := sdk.GetConfig() | ||
cfg.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub) | ||
cfg.SetBech32PrefixForValidator(sdk.Bech32PrefixValAddr, sdk.Bech32PrefixValPub) | ||
cfg.SetBech32PrefixForConsensusNode(sdk.Bech32PrefixConsAddr, sdk.Bech32PrefixConsPub) |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning test
cfg := sdk.GetConfig() | ||
cfg.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub) | ||
cfg.SetBech32PrefixForValidator(sdk.Bech32PrefixValAddr, sdk.Bech32PrefixValPub) | ||
cfg.SetBech32PrefixForConsensusNode(sdk.Bech32PrefixConsAddr, sdk.Bech32PrefixConsPub) |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning test
for k, v := range m2 { | ||
m1[k] = v | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning test
} | ||
|
||
consensusParams := chainutil.DefaultConsensusParams | ||
now := time.Now() |
Check warning
Code scanning / CodeQL
Calling the system time Warning test
No description provided.