From b822e553eb5d95d1949f5db8b3bd308fc6c9e4e8 Mon Sep 17 00:00:00 2001 From: Andrey Falaleev Date: Thu, 5 Dec 2024 17:42:43 +0000 Subject: [PATCH 1/2] hash in create multilple skd txs --- .../src/instruction/scheduled_transaction_create_multiple.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evm_loader/program/src/instruction/scheduled_transaction_create_multiple.rs b/evm_loader/program/src/instruction/scheduled_transaction_create_multiple.rs index 21250ce71..ae0dca086 100644 --- a/evm_loader/program/src/instruction/scheduled_transaction_create_multiple.rs +++ b/evm_loader/program/src/instruction/scheduled_transaction_create_multiple.rs @@ -40,6 +40,10 @@ fn parse_instruction(signer: &Operator, instruction: &[u8]) -> TreeInitializer { let (gas_limit, value, child_index, success_limit, hash) = arrayref::array_refs![chunk, 32, 32, 2, 2, 32]; + if nodes.len() == 0 { + log_data(&[b"HASH", hash]); + } + nodes.push(NodeInitializer { transaction_hash: *hash, sender: payer, From 7fde4b7a0e8024f78f2857f470611de4250873bc Mon Sep 17 00:00:00 2001 From: Andrey Falaleev Date: Thu, 5 Dec 2024 18:04:28 +0000 Subject: [PATCH 2/2] hash in create multilple skd txs --- .../src/instruction/scheduled_transaction_create_multiple.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/evm_loader/program/src/instruction/scheduled_transaction_create_multiple.rs b/evm_loader/program/src/instruction/scheduled_transaction_create_multiple.rs index ae0dca086..b32a96385 100644 --- a/evm_loader/program/src/instruction/scheduled_transaction_create_multiple.rs +++ b/evm_loader/program/src/instruction/scheduled_transaction_create_multiple.rs @@ -4,6 +4,7 @@ use crate::account::{ TreeInitializer, }; use crate::config::SOL_CHAIN_ID; +use crate::debug::log_data; use crate::error::{Error, Result}; use crate::instruction::scheduled_transaction_create::validate_nonce; use crate::types::Address;