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

test cases fix #516

Merged
merged 18 commits into from
Oct 21, 2022
Merged

test cases fix #516

merged 18 commits into from
Oct 21, 2022

Conversation

cgsingh33
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the C:CLI label Oct 20, 2022
id := bandKeeper.GetLastFetchPriceID(ctx)
data, _ := bandKeeper.GetFetchPriceResult(ctx, bandoraclemoduletypes.OracleRequestID(id))
scriptID := bandKeeper.GetFetchPriceMsg(ctx).OracleScriptID
twaBatch := bandKeeper.GetFetchPriceMsg(ctx).TwaBatchSize

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
index := -1
length := len(data.Rates)
for _, asset := range assets {
if asset.IsOraclePriceRequired && data.Rates != nil {
index = index + 1
if length > index {
k.UpdatePriceList(ctx, asset.Id, scriptID, data.Rates[index])
k.UpdatePriceList(ctx, asset.Id, scriptID, data.Rates[index], twaBatch)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
k.SetTempFetchPriceID(ctx, 0)
k.SetCheckFlag(ctx, true)
k.SetOracleValidationResult(ctx, false)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
@dheerajkd30 dheerajkd30 merged commit 239711d into feature/dev Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants