{"record":{"id":"7df74c8e97712fe2","repo":"FuelLabs/fuel-core","slug":"no-result-for-the-coins-to-spend","errorCode":null,"errorMessage":"No result for the coins to spend","messagePattern":"No result for the coins to spend","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/fuel-core/src/schema/tx/assemble_tx.rs","lineNumber":131,"sourceCode":"            max: None,\n            allow_partial: Some(allow_partial),\n        };\n\n        let result = self\n            .read_view\n            .coins_to_spend(\n                owner,\n                &[query_per_asset],\n                &self.exclude,\n                &self.consensus_parameters,\n                remaining_input_slots,\n            )\n            .await?\n            .into_iter()\n            .next();\n\n        let result =\n            result.ok_or_else(|| anyhow::anyhow!(\"No result for the coins to spend\"))?;\n\n        Ok(result)\n    }\n\n    /// Dry run the transaction to estimate the script gas limit.\n    /// It uses zero gas price to not depend on the coins to cover the fee.\n    async fn dry_run(\n        &self,\n        script: Script,\n    ) -> anyhow::Result<(Transaction, TransactionExecutionStatus)> {\n        self.block_producer\n            .dry_run_txs(vec![script.into()], None, None, Some(false), Some(0), false)\n            .await?\n            .transactions\n            .into_iter()\n            .next()\n            .ok_or_else(|| anyhow::anyhow!(\"No result for the dry run\"))\n    }","sourceCodeStart":113,"sourceCodeEnd":149,"githubUrl":"https://github.com/FuelLabs/fuel-core/blob/b9d4d170da3a31c9ace5f963d633b326348e0d42/crates/fuel-core/src/schema/tx/assemble_tx.rs#L113-L149","documentation":"Error \"No result for the coins to spend\" thrown in FuelLabs/fuel-core.","triggerScenarios":"Thrown at crates/fuel-core/src/schema/tx/assemble_tx.rs:131 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":"b9d4d170da3a31c9ace5f963d633b326348e0d42","analyzedAt":"2026-08-16T08:56:42.692Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}