Skip to content

Commit

Permalink
chore: fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Jul 15, 2024
1 parent 7fbd8bd commit 7034c62
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/account/src/providers/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1128,16 +1128,13 @@ Supported fuel-core version: ${supportedVersion}.`
const txRequestClone = clone(transactionRequestify(transactionRequestLike));
const isScriptTransaction = txRequestClone.type === TransactionType.Script;
const updateMaxFee = txRequestClone.maxFee.eq(0);
const signedRequest = clone(txRequestClone) as ScriptTransactionRequest;

/**
* Estimate predicates gasUsed
*/
// Remove gasLimit to avoid gasLimit when estimating predicates
if (isScriptTransaction) {
txRequestClone.gasLimit = bn(0);
}

const signedRequest = clone(txRequestClone) as ScriptTransactionRequest;
let addedSignatures = 0;
if (signatureCallback && isScriptTransaction) {
const lengthBefore = signedRequest.witnesses.length;
Expand Down

0 comments on commit 7034c62

Please sign in to comment.