chore!: refactored the getTransactionCost
method
#12843
Annotations
4 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: The block height 00000129 should be higher than the previous block height 00000129
❯ 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.estimateTxDependencies packages/account/src/account.ts:4298:11
❯ _Provider.getTransactionCost packages/account/src/account.ts:4532:74
❯ WalletUnlocked.getTransactionCost packages/account/src/wallet/base-wallet-unlocked.ts:5456:20
❯ WalletUnlocked.estimateAndFundTransaction packages/account/src/wallet/base-wallet-unlocked.ts:5556:20
❯ WalletUnlocked.createTransfer packages/account/src/wallet/base-wallet-unlocked.ts:5306:15
❯ WalletUnlocked.transfer packages/account/src/wallet/base-wallet-unlocked.ts:5319:21
❯ packages/fuel-gauge/src/fee.test.ts:288: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>' }
|
node@22
Process completed with exit code 1.
|
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>' }
|
node@20
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
browser
|
1.25 MB |
|
node
|
1.26 MB |
|