Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbate committed Jan 10, 2025
1 parent 0f897fc commit eaaa903
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/account/src/providers/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2396,14 +2396,11 @@ Supported fuel-core version: ${mock.supportedVersion}.`
transactionRequest.gasLimit = bn(0); // force fail
const signedTransaction = await wallet.signTransaction(transactionRequest);
transactionRequest.updateWitnessByOwner(wallet.address, signedTransaction);
await expectToThrowFuelError(
() =>
provider.sendTransaction(transactionRequest, {
estimateTxDependencies: false,
}),
{
code: ErrorCode.SCRIPT_REVERTED,
}
);
const response = await provider.sendTransaction(transactionRequest, {
estimateTxDependencies: false,
});
await expectToThrowFuelError(() => response.waitForResult(), {
code: ErrorCode.SCRIPT_REVERTED,
});
});
});

0 comments on commit eaaa903

Please sign in to comment.