Make TxProof.proof.leafHash non-optional

This commit is contained in:
Simon Warta 2020-09-17 16:22:28 +02:00
parent 3dd5994de5
commit 5ad2ee894f
3 changed files with 4 additions and 4 deletions

View File

@ -50,6 +50,8 @@
and `LaunchpadLedger` for more fine-grained access.
- @cosmjs/math: Add `.multiply` method to `Decimal` class.
- @cosmjs/tendermint-rpc: Make `BroadcastTxCommitResponse.height` non-optional.
- @cosmjs/tendermint-rpc: Make `TxProof.proof.leafHash` non-optional because it
is always set.
- @cosmjs/tendermint-rpc: Change type of `GenesisResponse.appState` to
`Record<string, unknown> | undefined`.
- @cosmjs/utils: Add `assertDefined`.

View File

@ -188,8 +188,7 @@ export interface TxProof {
readonly proof: {
readonly total: number;
readonly index: number;
/** Optional because does not exist in Tendermint 0.25.x */
readonly leafHash?: Uint8Array;
readonly leafHash: Uint8Array;
readonly aunts: readonly Uint8Array[];
};
}

View File

@ -147,8 +147,7 @@ export interface TxProof {
readonly proof: {
readonly total: number;
readonly index: number;
/** Optional because does not exist in Tendermint 0.25.x */
readonly leafHash?: Uint8Array;
readonly leafHash: Uint8Array;
readonly aunts: readonly Uint8Array[];
};
}