From cfde2e50a28f50177f2cf1e5c29e7756b6643ac6 Mon Sep 17 00:00:00 2001 From: Artem <48246993+quertc@users.noreply.github.com> Date: Thu, 22 Aug 2024 19:56:02 +0300 Subject: [PATCH] fix: add try add tx type byte --- src/signers/common.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/signers/common.rs b/src/signers/common.rs index 6ae540e..59431eb 100644 --- a/src/signers/common.rs +++ b/src/signers/common.rs @@ -27,13 +27,15 @@ pub async fn handle_eth_sign_transaction( let tx_envelope = tx_request.build(&signer).await?; println!("tx_envelope: {:?}", tx_envelope.tx_type()); println!("tx_envelope: {:?}", tx_envelope); + tx_envelope.signature_hash(); let mut encoded_tx = vec![]; + encoded_tx.push(tx_envelope.tx_type() as u8); tx_envelope.encode(&mut encoded_tx); println!("encoded_tx: {:?}", encoded_tx); let rlp_hex = hex::encode_prefixed(encoded_tx); - println!("rlp_hex: {:?}", rlp_hex);; + println!("rlp_hex: {:?}", rlp_hex); Ok(JsonRpcReply { id: payload.id,