FuelLabs/sway · error · anyhow::Error
{e:?}
Error message
{e:?} What it means
Error "{e:?}" thrown in FuelLabs/sway.
Source
Thrown at forc-test/src/execute.rs:125
let tmp_tx = tx_builder.clone().finalize();
// Get `max_gas` used by everything except the script execution. Add `1` because of rounding.
let max_gas =
tmp_tx.max_gas(consensus_params.gas_costs(), consensus_params.fee_params()) + 1;
// Increase `script_gas_limit` to the maximum allowed value.
tx_builder.script_gas_limit(consensus_params.tx_params().max_gas_per_tx() - max_gas);
// We need to increase the tx size limit as the default is 110 * 1024 and for big tests
// such as std this is not enough.
let tx = tx_builder
.finalize_checked(block_height)
.into_ready(
gas_price,
consensus_params.gas_costs(),
consensus_params.fee_params(),
None,
)
.map_err(|e| anyhow::anyhow!("{e:?}"))?;
let interpreter_params = InterpreterParams::new(gas_price, &consensus_params);
let memory_instance = MemoryInstance::new();
let interpreter = Interpreter::with_storage(memory_instance, storage, interpreter_params);
Ok(TestExecutor {
interpreter,
tx,
test_entry: test_entry.clone(),
name,
jump_instruction_index,
relative_jump_in_bytes: (test_instruction_index - jump_instruction_index as u32)
* Instruction::SIZE as u32,
})
}
// single-step until the jump-to-test instruction, then
// jump into the first instruction of the testView on GitHub (pinned to 47e5e902fa)
When it happens
Trigger: Thrown at forc-test/src/execute.rs:125 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of FuelLabs/sway@47e5e902fa (2026-08-16).
Data as JSON: /api/errors/b673b01229c9556e.
Report an issue: GitHub.