From 5d9ae5b0be1bdfc06f0ece719ec11bb1c9657a28 Mon Sep 17 00:00:00 2001 From: steelgeek091 Date: Sun, 26 Jan 2025 16:19:37 +0800 Subject: [PATCH] Fix the dry run exception caused by missing txmeta --- crates/rooch-executor/src/actor/executor.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/rooch-executor/src/actor/executor.rs b/crates/rooch-executor/src/actor/executor.rs index 0a82b1f439..7853cd1021 100644 --- a/crates/rooch-executor/src/actor/executor.rs +++ b/crates/rooch-executor/src/actor/executor.rs @@ -21,6 +21,7 @@ use moveos_types::module_binding::MoveFunctionCaller; use moveos_types::move_std::option::MoveOption; use moveos_types::moveos_std::object::ObjectMeta; use moveos_types::moveos_std::tx_context::TxContext; +use moveos_types::moveos_std::tx_meta::TxMeta; use moveos_types::state::{ObjectState, StateChangeSetExt}; use moveos_types::state_resolver::RootObjectResolver; use moveos_types::transaction::{FunctionCall, MoveOSTransaction, VerifiedMoveAction}; @@ -378,6 +379,9 @@ impl ExecutorActor { tx_data.tx_size(), ); + let tx_metadata = TxMeta::new_from_move_action(&tx_data.action); + tx_ctx.add(tx_metadata).unwrap(); + let mut bitcoin_address = BitcoinAddress::from_str("18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX")?; let user_multi_chain_address: MultiChainAddress = tx_data.sender.into();