Skip to content

Commit 3d8f693

Browse files
committed
Added extra logging
1 parent e225e3e commit 3d8f693

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

crates/core/src/driver/mod.rs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,28 @@ where
235235
Ok(receipt) => receipt,
236236
Err(err) => {
237237
log::error!(
238-
"Failed to execute transaction when deploying the contract: {:?}, {:?}",
238+
"Failed to execute transaction when deploying the contract on node : {:?}, {:?}, {:?}",
239+
std::any::type_name::<T>(),
239240
&contract_name,
240241
err
241242
);
242243
return Err(err);
243244
}
244245
};
245246

247+
log::info!(
248+
"Deployment tx sent for {} with nonce {} → tx hash: {:?}, on node: {:?}",
249+
contract_name,
250+
nonce,
251+
receipt.transaction_hash,
252+
std::any::type_name::<T>(),
253+
);
254+
246255
log::trace!(
247-
"Deployed transaction receipt for contract: {} - {:?}",
256+
"Deployed transaction receipt for contract: {} - {:?}, on node: {:?}",
248257
&contract_name,
249-
receipt
258+
receipt,
259+
std::any::type_name::<T>(),
250260
);
251261

252262
let Some(address) = receipt.contract_address else {
@@ -259,7 +269,12 @@ where
259269

260270
self.deployed_contracts
261271
.insert(contract_name.clone(), address);
262-
log::info!("deployed contract `{}` at {:?}", contract_name, address);
272+
log::info!(
273+
"deployed contract `{}` at {:?}, on node {:?}",
274+
contract_name,
275+
address,
276+
std::any::type_name::<T>()
277+
);
263278
}
264279
}
265280
}

0 commit comments

Comments
 (0)