multiversx_chain_vm/blockchain/
blockchain_mock.rs

1use std::{fmt::Debug, ops::Deref};
2
3use super::{state::BlockchainStateRef, VMConfigRef};
4
5#[derive(Default)]
6pub struct BlockchainMock {
7    pub vm: VMConfigRef,
8    pub state: BlockchainStateRef,
9}
10
11impl Debug for BlockchainMock {
12    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
13        f.debug_struct("BlockchainMock")
14            .field("state", self.state.deref())
15            .finish()
16    }
17}