Skip to content

chore!: refactored the getTransactionCost method #12873

chore!: refactored the getTransactionCost method

chore!: refactored the getTransactionCost method #12873

Triggered via pull request July 15, 2024 15:27
Status Failure
Total duration 7m 50s
Artifacts 2

test.yaml

on: pull_request
Matrix: environments
Fit to window
Zoom out
Zoom in

Annotations

3 errors
packages/fuel-gauge/src/fee.test.ts > Fee > should ensure fee is properly calculated on transactions with predicate: packages/account/src/account.ts#L4079
FuelError: not enough coins to fit the target ❯ responseMiddleware packages/account/src/account.ts:4079:19 ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/graphql-request/src/index.ts:345:11 ❯ _Provider.getResourcesToSpend packages/account/src/account.ts:4621:20 ❯ Predicate.getResourcesToSpend packages/account/src/account.ts:9504:23 ❯ Predicate.fund packages/account/src/account.ts:5561:25 ❯ Predicate.estimateAndFundTransaction packages/account/src/account.ts:5880:15 ❯ Predicate.createTransfer packages/account/src/account.ts:5623:15 ❯ Predicate.transfer packages/account/src/account.ts:5636:21 ❯ packages/fuel-gauge/src/fee.test.ts:293:17 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.92.0' }, metadata: {}, rawError: {}, code: 'invalid-request', toObject: 'Function<toObject>' }
packages/fuel-gauge/src/predicate/predicate-arguments.test.ts > Predicate > Arguments > calls a predicate with an invalid main struct argument and returns false: packages/fuel-gauge/src/predicate/predicate-arguments.test.ts#L166
AssertionError: expected [Function] to throw error matching /PredicateVerificationFailed/ but got 'Invalid transaction data: Validity(In…' - Expected: /PredicateVerificationFailed/ + Received: "Invalid transaction data: Validity(InsufficientFeeAmount { expected: 459008, provided: 432494 })" ❯ packages/fuel-gauge/src/predicate/predicate-arguments.test.ts:166:7
node@20
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
browser
1.25 MB
node
1.26 MB