chore!: refactored the getTransactionCost
method
#12799
Annotations
22 errors
packages/account/src/account.test.ts > Account > should ensure gas limit and price are validated when withdraw an amount of base asset:
packages/account/src/account.test.ts#L686
AssertionError: expected [Function] to throw error matching /Gas limit '1' is lower than the requi…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '1' is lower than the required: ./
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/account/src/account.test.ts:686:5
|
packages/fuel-gauge/src/contract.test.ts > Contract > dryRun and get should not validate the signature:
packages/account/src/account.ts#L1776
FuelError: The transaction reverted with reason: "OutOfGas".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas
❯ assemblePanicError packages/account/src/account.ts:1776:10
❯ extractTxError packages/account/src/account.ts:1842:12
❯ _Provider.extractDryRunError packages/account/src/account.ts:5086:12
❯ _Provider.getTransactionCost packages/account/src/account.ts:4534:20
❯ WalletUnlocked.getTransactionCost packages/account/src/wallet/base-wallet-unlocked.ts:5456:20
❯ MultiCallInvocationScope.dryRun packages/program/src/utils.ts:773:26
❯ packages/fuel-gauge/src/contract.test.ts:678:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.92.0' }, metadata: { logs: [], receipts: [ { type: 3, id: '0x0000000000000000000000000000000000000000000000000000000000000000', reason: '0x22d41148a000000', pc: '0x2890', is: '0x2880', contractId: '0x0000000000000000000000000000000000000000000000000000000000000000' }, { type: 9, result: '0x2', gasUsed: '0x2710' } ], panic: true, revert: false, reason: 'OutOfGas' }, rawError: {}, code: 'script-reverted', toObject: 'Function<toObject>' }
|
packages/fuel-gauge/src/contract.test.ts > Contract > Provide a custom provider and public wallet to the contract instance:
packages/account/src/account.ts#L1776
FuelError: The transaction reverted with reason: "OutOfGas".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas
❯ assemblePanicError packages/account/src/account.ts:1776:10
❯ extractTxError packages/account/src/account.ts:1842:12
❯ ProviderCustom.extractDryRunError packages/account/src/account.ts:5086:12
❯ ProviderCustom.getTransactionCost packages/account/src/account.ts:4534:20
❯ WalletLocked.getTransactionCost packages/account/src/account.ts:5773:20
❯ packages/fuel-gauge/src/contract.test.ts:810:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.92.0' }, metadata: { logs: [], receipts: [ { type: 3, id: '0x0000000000000000000000000000000000000000000000000000000000000000', reason: '0x22d41148a000000', pc: '0x2890', is: '0x2880', contractId: '0x0000000000000000000000000000000000000000000000000000000000000000' }, { type: 9, result: '0x2', gasUsed: '0x4e20' } ], panic: true, revert: false, reason: 'OutOfGas' }, rawError: {}, code: 'script-reverted', toObject: 'Function<toObject>' }
|
packages/fuel-gauge/src/contract.test.ts > Contract > should ensure gas price and gas limit are validated when transfering to contract:
packages/fuel-gauge/src/contract.test.ts#L927
AssertionError: expected [Function] to throw error matching /Gas limit '1' is lower than the requi…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '1' is lower than the required: ./
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/fuel-gauge/src/contract.test.ts:927:5
|
packages/fuel-gauge/src/fee.test.ts > Fee > should ensure fee is properly calculated on transactions with predicate:
packages/utils/src/test-utils/getForcProject.ts#L149
Error: Expected value: '172323' to be within range: '727463-727503'
❯ Module.expectToBeInRange packages/utils/src/test-utils/getForcProject.ts:149:9
❯ packages/fuel-gauge/src/fee.test.ts:300:5
|
packages/fuel-gauge/src/script-main-args.test.ts > Script Coverage > can call script and use main arguments [tx params]:
packages/fuel-gauge/src/script-main-args.test.ts#L82
AssertionError: expected [Function] to throw error matching /Gas limit '10' is lower than the requ…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '10' is lower than the required/
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/fuel-gauge/src/script-main-args.test.ts:82:5
|
packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts > Predicate > Invalidations > throws if sender does not have enough resources for tx and gas:
packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts#L43
AssertionError: expected [Function] to throw error matching /not enough coins to fit the target/i but got 'PredicateVerificationFailed(Transacti…'
- Expected:
/not enough coins to fit the target/i
+ Received:
"PredicateVerificationFailed(TransactionExceedsTotalGasAllowance(110551370))"
❯ packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts:43:7
|
node@22
Process completed with exit code 1.
|
packages/account/src/account.test.ts > Account > should ensure gas limit and price are validated when withdraw an amount of base asset:
packages/account/src/account.test.ts#L686
AssertionError: expected [Function] to throw error matching /Gas limit '1' is lower than the requi…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '1' is lower than the required: ./
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/account/src/account.test.ts:686:5
|
packages/fuel-gauge/src/contract.test.ts > Contract > dryRun and get should not validate the signature:
packages/account/src/account.ts#L1776
FuelError: The transaction reverted with reason: "OutOfGas".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas
❯ assemblePanicError packages/account/src/account.ts:1776:10
❯ extractTxError packages/account/src/account.ts:1842:12
❯ _Provider.extractDryRunError packages/account/src/account.ts:5086:12
❯ _Provider.getTransactionCost packages/account/src/account.ts:4534:20
❯ WalletUnlocked.getTransactionCost packages/account/src/wallet/base-wallet-unlocked.ts:5456:20
❯ MultiCallInvocationScope.dryRun packages/program/src/utils.ts:773:26
❯ packages/fuel-gauge/src/contract.test.ts:678:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.92.0' }, metadata: { logs: [], receipts: [ { type: 3, id: '0x0000000000000000000000000000000000000000000000000000000000000000', reason: '0x22d41148a000000', pc: '0x2890', is: '0x2880', contractId: '0x0000000000000000000000000000000000000000000000000000000000000000' }, { type: 9, result: '0x2', gasUsed: '0x2710' } ], panic: true, revert: false, reason: 'OutOfGas' }, rawError: {}, code: 'script-reverted', toObject: 'Function<toObject>' }
|
packages/fuel-gauge/src/contract.test.ts > Contract > Provide a custom provider and public wallet to the contract instance:
packages/account/src/account.ts#L1776
FuelError: The transaction reverted with reason: "OutOfGas".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas
❯ assemblePanicError packages/account/src/account.ts:1776:10
❯ extractTxError packages/account/src/account.ts:1842:12
❯ ProviderCustom.extractDryRunError packages/account/src/account.ts:5086:12
❯ ProviderCustom.getTransactionCost packages/account/src/account.ts:4534:20
❯ WalletLocked.getTransactionCost packages/account/src/account.ts:5773:20
❯ packages/fuel-gauge/src/contract.test.ts:810:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.92.0' }, metadata: { logs: [], receipts: [ { type: 3, id: '0x0000000000000000000000000000000000000000000000000000000000000000', reason: '0x22d41148a000000', pc: '0x2890', is: '0x2880', contractId: '0x0000000000000000000000000000000000000000000000000000000000000000' }, { type: 9, result: '0x2', gasUsed: '0x4e20' } ], panic: true, revert: false, reason: 'OutOfGas' }, rawError: {}, code: 'script-reverted', toObject: 'Function<toObject>' }
|
packages/fuel-gauge/src/contract.test.ts > Contract > should ensure gas price and gas limit are validated when transfering to contract:
packages/fuel-gauge/src/contract.test.ts#L927
AssertionError: expected [Function] to throw error matching /Gas limit '1' is lower than the requi…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '1' is lower than the required: ./
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/fuel-gauge/src/contract.test.ts:927:5
|
packages/fuel-gauge/src/script-main-args.test.ts > Script Coverage > can call script and use main arguments [tx params]:
packages/fuel-gauge/src/script-main-args.test.ts#L82
AssertionError: expected [Function] to throw error matching /Gas limit '10' is lower than the requ…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '10' is lower than the required/
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/fuel-gauge/src/script-main-args.test.ts:82:5
|
packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts > Predicate > Invalidations > throws if sender does not have enough resources for tx and gas:
packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts#L43
AssertionError: expected [Function] to throw error matching /not enough coins to fit the target/i but got 'PredicateVerificationFailed(Transacti…'
- Expected:
/not enough coins to fit the target/i
+ Received:
"PredicateVerificationFailed(TransactionExceedsTotalGasAllowance(110551370))"
❯ packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts:43:7
|
node@20
Process completed with exit code 1.
|
packages/account/src/account.test.ts > Account > should ensure gas limit and price are validated when withdraw an amount of base asset:
packages/account/src/account.test.ts#L686
AssertionError: expected [Function] to throw error matching /Gas limit '1' is lower than the requi…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '1' is lower than the required: ./
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/account/src/account.test.ts:686:5
|
packages/fuel-gauge/src/contract.test.ts > Contract > dryRun and get should not validate the signature:
packages/account/src/account.ts#L1776
FuelError: The transaction reverted with reason: "OutOfGas".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas
❯ assemblePanicError packages/account/src/account.ts:1776:10
❯ extractTxError packages/account/src/account.ts:1842:12
❯ _Provider.extractDryRunError packages/account/src/account.ts:5086:12
❯ _Provider.getTransactionCost packages/account/src/account.ts:4534:20
❯ WalletUnlocked.getTransactionCost packages/account/src/wallet/base-wallet-unlocked.ts:5456:20
❯ MultiCallInvocationScope.dryRun packages/program/src/utils.ts:773:26
❯ packages/fuel-gauge/src/contract.test.ts:678:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.92.0' }, metadata: { logs: [], receipts: [ { type: 3, id: '0x0000000000000000000000000000000000000000000000000000000000000000', reason: '0x22d41148a000000', pc: '0x2890', is: '0x2880', contractId: '0x0000000000000000000000000000000000000000000000000000000000000000' }, { type: 9, result: '0x2', gasUsed: '0x2710' } ], panic: true, revert: false, reason: 'OutOfGas' }, rawError: {}, code: 'script-reverted', toObject: 'Function<toObject>' }
|
packages/fuel-gauge/src/contract.test.ts > Contract > Provide a custom provider and public wallet to the contract instance:
packages/account/src/account.ts#L1776
FuelError: The transaction reverted with reason: "OutOfGas".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas
❯ assemblePanicError packages/account/src/account.ts:1776:10
❯ extractTxError packages/account/src/account.ts:1842:12
❯ ProviderCustom.extractDryRunError packages/account/src/account.ts:5086:12
❯ ProviderCustom.getTransactionCost packages/account/src/account.ts:4534:20
❯ WalletLocked.getTransactionCost packages/account/src/account.ts:5773:20
❯ packages/fuel-gauge/src/contract.test.ts:810:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.92.0' }, metadata: { logs: [], receipts: [ { type: 3, id: '0x0000000000000000000000000000000000000000000000000000000000000000', reason: '0x22d41148a000000', pc: '0x2890', is: '0x2880', contractId: '0x0000000000000000000000000000000000000000000000000000000000000000' }, { type: 9, result: '0x2', gasUsed: '0x4e20' } ], panic: true, revert: false, reason: 'OutOfGas' }, rawError: {}, code: 'script-reverted', toObject: 'Function<toObject>' }
|
packages/fuel-gauge/src/contract.test.ts > Contract > should ensure gas price and gas limit are validated when transfering to contract:
packages/fuel-gauge/src/contract.test.ts#L927
AssertionError: expected [Function] to throw error matching /Gas limit '1' is lower than the requi…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '1' is lower than the required: ./
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/fuel-gauge/src/contract.test.ts:927:5
|
packages/fuel-gauge/src/script-main-args.test.ts > Script Coverage > can call script and use main arguments [tx params]:
packages/fuel-gauge/src/script-main-args.test.ts#L82
AssertionError: expected [Function] to throw error matching /Gas limit '10' is lower than the requ…/ but got 'The transaction reverted with reason:…'
- Expected:
/Gas limit '10' is lower than the required/
+ Received:
"The transaction reverted with reason: \"OutOfGas\".
You can read more about this error at:
https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas"
❯ packages/fuel-gauge/src/script-main-args.test.ts:82:5
|
packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts > Predicate > Invalidations > throws if sender does not have enough resources for tx and gas:
packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts#L43
AssertionError: expected [Function] to throw error matching /not enough coins to fit the target/i but got 'PredicateVerificationFailed(Transacti…'
- Expected:
/not enough coins to fit the target/i
+ Received:
"PredicateVerificationFailed(TransactionExceedsTotalGasAllowance(110551370))"
❯ packages/fuel-gauge/src/predicate/predicate-invalidations.test.ts:43:7
|
node@18
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
browser
|
1.25 MB |
|