Merge branch 'main' into Registry-constructor-arguments
This commit is contained in:
@@ -757,7 +757,7 @@ function decodeBlock(data: RpcBlock): responses.Block {
|
||||
txs: data.data.txs ? assertArray(data.data.txs).map(fromBase64) : [],
|
||||
// Lift up .evidence.evidence to just .evidence
|
||||
// See https://github.com/tendermint/tendermint/issues/7697
|
||||
evidence: data.evidence?.evidence,
|
||||
evidence: data.evidence?.evidence ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -227,8 +227,7 @@ export interface Block {
|
||||
*/
|
||||
readonly lastCommit: Commit | null;
|
||||
readonly txs: readonly Uint8Array[];
|
||||
// This field becomes non-optional in 0.28 (https://github.com/cosmos/cosmjs/issues/1011)
|
||||
readonly evidence?: readonly Evidence[];
|
||||
readonly evidence: readonly Evidence[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user