-
Notifications
You must be signed in to change notification settings - Fork 8
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
V2.0.0 #97
V2.0.0 #97
Conversation
for addr, account := range snapshotAccs { | ||
// account.LiquidBalances = underlyingCoins(account.LiquidBalances) | ||
// account.Bonded = underlyingCoins(account.Bonded) | ||
account.TotalBalances = sdk.NewCoins(). | ||
Add(account.LiquidBalances...). | ||
Add(sdk.NewCoin(appparams.BondDenom, account.Staked)). | ||
Add(sdk.NewCoin(appparams.BondDenom, account.UnbondingStake)). | ||
Add(account.Bonded...) | ||
snapshotAccs[addr] = account | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
for _, r := range deriveSnapshot.Accounts { | ||
var csvRow []string | ||
if r.Staked.GT(sdk.NewInt(minStakeAmount)) { | ||
csvRow = append(csvRow, r.Address, r.Staked.String()) | ||
if err := writer.Write(csvRow); err != nil { | ||
return err | ||
} | ||
} | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
|
||
sudoMsg := []byte(fmt.Sprintf( | ||
`{"ibc_lifecycle_complete": {"ibc_ack": {"channel": "%s", "sequence": %d, "ack": %s, "success": %s}}}`, | ||
packet.SourceChannel, packet.Sequence, ackAsJSON, success)) |
Check failure
Code scanning / CodeQL
Potentially unsafe quoting
Merging into primary repo to continue formatting the |
#93