Skip to content

Commit

Permalink
refactor(transaction_sender): fix destructuring assignment
Browse files Browse the repository at this point in the history
Destructuring assignment unnecessarily renamed
  • Loading branch information
Rudy-Perrin committed Dec 5, 2023
1 parent 4af9fe6 commit f65df0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transaction_sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ async function waitConfirmations(
const notifier = absinthe.send(absintheSocket, operation);
return absinthe.observe(absintheSocket, notifier, (result: any) => {
if (result.data.transactionConfirmed) {
const { nbConfirmations: nbConfirmations, maxConfirmations: maxConfirmations } = result.data.transactionConfirmed;
const { nbConfirmations, maxConfirmations } = result.data.transactionConfirmed;

handler(nbConfirmations, maxConfirmations);
}
Expand All @@ -196,7 +196,7 @@ async function waitError(address: string | Uint8Array, absintheSocket: any, hand
const notifier = absinthe.send(absintheSocket, operation);
return absinthe.observe(absintheSocket, notifier, (result: any) => {
if (result.data.transactionError) {
const { context: context, reason: reason } = result.data.transactionError;
const { context, reason } = result.data.transactionError;
handler(context, reason);
}
});
Expand Down

0 comments on commit f65df0e

Please sign in to comment.