Skip to content

Commit 333c792

Browse files
committed
wip
1 parent 921684b commit 333c792

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/wallet.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use alloy::rpc::types::{
2020
use alloy_primitives::TxKind;
2121
use alloy_primitives::{Address as EthAddress, Bytes, TxHash, B256, U256};
2222
use alloy_sol_types::{sol, SolCall};
23+
use hex;
2324
use serde::{Deserialize, Serialize};
2425
use std::str::FromStr;
2526
use thiserror::Error;
@@ -2326,6 +2327,11 @@ impl UserOperationBuilder {
23262327
// Get the UserOp hash for signing
23272328
let user_op_hash = self.get_user_op_hash_v08(&packed_op, entry_point, self.chain_id);
23282329

2330+
// Log the hash before signing
2331+
kiprintln!("PL:: UserOperation hash to sign: 0x{}", hex::encode(&user_op_hash));
2332+
kiprintln!("PL:: Entry point: {}", entry_point);
2333+
kiprintln!("PL:: Chain ID: {}", self.chain_id);
2334+
23292335
// Sign the hash
23302336
let signature = signer.sign_message(&user_op_hash)?;
23312337

0 commit comments

Comments
 (0)