mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Merge branch 'main' into Registry-constructor-arguments
This commit is contained in:
commit
f8ed0086d7
@ -15,9 +15,12 @@ and this project adheres to
|
|||||||
CosmJS users that need to add Amino types manually. ([#989])
|
CosmJS users that need to add Amino types manually. ([#989])
|
||||||
- @cosmjs/stargate: `MsgSend` and `Coin` are now parts of `defaultRegistryTypes`. ([#994])
|
- @cosmjs/stargate: `MsgSend` and `Coin` are now parts of `defaultRegistryTypes`. ([#994])
|
||||||
- @cosmjs/proto-signing: `Registry`'s constructor can now override default types. ([#994])
|
- @cosmjs/proto-signing: `Registry`'s constructor can now override default types. ([#994])
|
||||||
|
- @cosmjs/tendermint-rpc: The property `evidence` in the interface `Block` is now
|
||||||
|
non-optional. ([#1011])
|
||||||
|
|
||||||
[#989]: https://github.com/cosmos/cosmjs/issues/989
|
[#989]: https://github.com/cosmos/cosmjs/issues/989
|
||||||
[#994]: https://github.com/cosmos/cosmjs/issues/994
|
[#994]: https://github.com/cosmos/cosmjs/issues/994
|
||||||
|
[#1011]: https://github.com/cosmos/cosmjs/issues/1011
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
@ -757,7 +757,7 @@ function decodeBlock(data: RpcBlock): responses.Block {
|
|||||||
txs: data.data.txs ? assertArray(data.data.txs).map(fromBase64) : [],
|
txs: data.data.txs ? assertArray(data.data.txs).map(fromBase64) : [],
|
||||||
// Lift up .evidence.evidence to just .evidence
|
// Lift up .evidence.evidence to just .evidence
|
||||||
// See https://github.com/tendermint/tendermint/issues/7697
|
// 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 lastCommit: Commit | null;
|
||||||
readonly txs: readonly Uint8Array[];
|
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[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user