diff --git a/lib/ain-evm/src/evm.rs b/lib/ain-evm/src/evm.rs index b7c5fafe4d..4df4466fa4 100644 --- a/lib/ain-evm/src/evm.rs +++ b/lib/ain-evm/src/evm.rs @@ -45,6 +45,7 @@ pub struct FinalizedBlockInfo { pub total_burnt_fees: U256, pub total_priority_fees: U256, pub block_number: U256, + pub state_root: XHash, } pub struct DeployContractInfo { @@ -377,6 +378,7 @@ impl EVMServices { total_burnt_fees, total_priority_fees, block_number: current_block_number, + state_root: format!("{:?}", state_root), }) } diff --git a/lib/ain-rs-exports/src/evm.rs b/lib/ain-rs-exports/src/evm.rs index 984b015fef..4049757721 100644 --- a/lib/ain-rs-exports/src/evm.rs +++ b/lib/ain-rs-exports/src/evm.rs @@ -488,6 +488,7 @@ pub fn evm_unsafe_try_construct_block_in_q( total_burnt_fees, total_priority_fees, block_number, + state_root, }) => { let Ok(total_burnt_fees) = u64::try_from(WeiAmount(total_burnt_fees).to_satoshi()) else { @@ -508,6 +509,7 @@ pub fn evm_unsafe_try_construct_block_in_q( total_burnt_fees, total_priority_fees, block_number: block_number.as_u64(), + state_root, } } Err(e) => cross_boundary_error_return(result, e.to_string()), diff --git a/lib/ain-rs-exports/src/lib.rs b/lib/ain-rs-exports/src/lib.rs index 52c5592c9b..7ebff8d1f3 100644 --- a/lib/ain-rs-exports/src/lib.rs +++ b/lib/ain-rs-exports/src/lib.rs @@ -82,6 +82,7 @@ pub mod ffi { pub total_burnt_fees: u64, pub total_priority_fees: u64, pub block_number: u64, + pub state_root: String, } #[derive(Default)]