mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Add more information about missing minHeight/maxHeight support
This commit is contained in:
parent
007b4dd362
commit
18aa7e33dd
@ -288,8 +288,14 @@ export class CosmWasmConnection implements BlockchainConnection {
|
||||
signedBy,
|
||||
tags,
|
||||
}: TransactionQuery): Promise<readonly (ConfirmedTransaction<UnsignedTransaction> | FailedTransaction)[]> {
|
||||
if ([maxHeight, minHeight, signedBy, tags].some(component => component !== undefined)) {
|
||||
throw new Error("Transaction query by maxHeight, minHeight, signedBy or tags not yet supported");
|
||||
if ([signedBy, tags].some(component => component !== undefined)) {
|
||||
throw new Error("Transaction query by signedBy or tags not yet supported");
|
||||
}
|
||||
|
||||
if ([maxHeight, minHeight].some(component => component !== undefined)) {
|
||||
throw new Error(
|
||||
"Transaction query by minHeight/maxHeight not yet supported. This is due to missing flexibility of the Gaia REST API, see https://github.com/cosmos/gaia/issues/75",
|
||||
);
|
||||
}
|
||||
|
||||
if ([id, height, sentFromOrTo].filter(component => component !== undefined).length !== 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user