{"record":{"id":"b673b01229c9556e","repo":"FuelLabs/sway","slug":"e-b673b0","errorCode":null,"errorMessage":"{e:?}","messagePattern":"\\{e:\\?\\}","errorType":"console","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"forc-test/src/execute.rs","lineNumber":125,"sourceCode":"        let tmp_tx = tx_builder.clone().finalize();\n        // Get `max_gas` used by everything except the script execution. Add `1` because of rounding.\n        let max_gas =\n            tmp_tx.max_gas(consensus_params.gas_costs(), consensus_params.fee_params()) + 1;\n        // Increase `script_gas_limit` to the maximum allowed value.\n        tx_builder.script_gas_limit(consensus_params.tx_params().max_gas_per_tx() - max_gas);\n\n        // We need to increase the tx size limit as the default is 110 * 1024 and for big tests\n        // such as std this is not enough.\n\n        let tx = tx_builder\n            .finalize_checked(block_height)\n            .into_ready(\n                gas_price,\n                consensus_params.gas_costs(),\n                consensus_params.fee_params(),\n                None,\n            )\n            .map_err(|e| anyhow::anyhow!(\"{e:?}\"))?;\n\n        let interpreter_params = InterpreterParams::new(gas_price, &consensus_params);\n        let memory_instance = MemoryInstance::new();\n        let interpreter = Interpreter::with_storage(memory_instance, storage, interpreter_params);\n\n        Ok(TestExecutor {\n            interpreter,\n            tx,\n            test_entry: test_entry.clone(),\n            name,\n            jump_instruction_index,\n            relative_jump_in_bytes: (test_instruction_index - jump_instruction_index as u32)\n                * Instruction::SIZE as u32,\n        })\n    }\n\n    // single-step until the jump-to-test instruction, then\n    // jump into the first instruction of the test","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/FuelLabs/sway/blob/47e5e902faa42baf652dd6a0c88cd23390c1a614/forc-test/src/execute.rs#L107-L143","documentation":"Error \"{e:?}\" thrown in FuelLabs/sway.","triggerScenarios":"Thrown at forc-test/src/execute.rs:125 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"47e5e902faa42baf652dd6a0c88cd23390c1a614","analyzedAt":"2026-08-16T07:57:45.555Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}