Skip to content

Commit

Permalink
Apply cargo-clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Sep 5, 2024
1 parent 2961e08 commit e01d193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl Context {
/// Run all scripts in the transaction in ckb-vm
pub fn verify_scripts(&self, tx: TransactionView) -> Result<Cycle, Error> {
let mock_tx = self.to_mock_tx(tx.data());
let resource = Resource::from_both(&mock_tx, DummyLoader).map_err(Error::VerifyScript)?;
let resource = Resource::from_both(&mock_tx, &mut DummyLoader).map_err(Error::VerifyScript)?;
let rtx = resolve_transaction(tx, &mut HashSet::new(), &resource, &resource)
.map_err(|err| Error::VerifyScript(format!("Resolve transaction error: {:?}", err)))?;
let consensus = ConsensusBuilder::default()
Expand Down

0 comments on commit e01d193

Please sign in to comment.