Skip to content

Commit

Permalink
chore: fix compile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Dec 16, 2024
1 parent fc1ca38 commit 022d731
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,12 @@ export class WalletConnectConnector extends PredicateConnector {
const transactionWithPredicateEstimated =
await fuelProvider.estimatePredicates(request);

const txAfterUserCallback = params?.onBeforeSend
? await params.onBeforeSend(transactionWithPredicateEstimated)
: transactionWithPredicateEstimated;
let txAfterUserCallback = transactionWithPredicateEstimated;
if (params?.onBeforeSend) {
txAfterUserCallback = await params.onBeforeSend(
transactionWithPredicateEstimated,
);
}

const response = await fuelProvider.operations.submit({
encodedTransaction: hexlify(txAfterUserCallback.toTransactionBytes()),
Expand Down

0 comments on commit 022d731

Please sign in to comment.