Skip to content

Commit

Permalink
unset cached resources as soon as the TX is processed
Browse files Browse the repository at this point in the history
  • Loading branch information
Torres-ssf committed Jan 16, 2025
1 parent d550e44 commit 821ebdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ export class TransactionResponse {

const status = this.status ?? this.gqlTransaction?.status;
if (status?.type === 'FailureStatus') {
this.unsetResourceCache();
const { reason } = status;
throw extractTxError({
receipts,
Expand All @@ -413,6 +412,7 @@ export class TransactionResponse {
contractsAbiMap?: AbiMap
): Promise<TransactionResult<TTransactionType>> {
await this.waitForStatusChange();
this.unsetResourceCache();
return this.assembleResult<TTransactionType>(contractsAbiMap);
}

Expand Down

0 comments on commit 821ebdc

Please sign in to comment.