You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The helper function GetConsensusState in 07-tendermint currently returns (*ConsensusState, error).
This deviates from the standard pattern of using (type, bool) as the return signature for state accessor functions used throughout ibc-go and the cosmos-sdk.
Proposal
Consider updating the return values of GetConsensusState to return (*ConsensusState, error)
Panic in the event of malformed bytes (i.e. the stored bytes cannot be unmarshalled to the desired type)
## Overview
`celestia-openrpc v0.1.2` signature for `NewDataAvailabilityHeader` now
returns an error, so this needed to be handled.
`RandEDS` and `RandShares` needed to be updated for the new `Share`
type.
## Checklist
<!--
Please complete the checklist to ensure that the PR is ready to be
reviewed.
IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->
- [x] New and updated code has appropriate documentation
- [x] New and updated code has new and/or updated testing
- [x] Required CI checks are passing
- [x] Visual proof for any user facing features like CLI or
documentation updates
- [x] Linked issues closed with keywords
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Summary
The helper function
GetConsensusState
in07-tendermint
currently returns(*ConsensusState, error)
.This deviates from the standard pattern of using
(type, bool)
as the return signature for state accessor functions used throughout ibc-go and the cosmos-sdk.Proposal
GetConsensusState
to return(*ConsensusState, error)
ref: PR comment
For Admin Use
The text was updated successfully, but these errors were encountered: