Skip to content
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

Merged
merged 14 commits into from
Jun 30, 2023
Merged

V2.0.0 #97

merged 14 commits into from
Jun 30, 2023

Conversation

hard-nett
Copy link
Collaborator

#93

Comment on lines +170 to +179
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

Iteration over map may be a possible source of non-determinism
Comment on lines +255 to +263
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

Iteration over map may be a possible source of non-determinism

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

If this [JSON value](1) contains a double quote, it could break out of the enclosing quotes.
@discoverdefiteam
Copy link
Contributor

Merging into primary repo to continue formatting the interchaintest package.

@discoverdefiteam discoverdefiteam merged commit 7e7c06f into terpnetwork:v2.0.0 Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants