multiversx-chain-vm 0.23.0

MultiversX VM implementation and tooling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{fmt::Debug, ops::Deref};

use super::{VMConfigRef, state::BlockchainStateRef};

#[derive(Default)]
pub struct BlockchainMock {
    pub vm: VMConfigRef,
    pub state: BlockchainStateRef,
}

impl Debug for BlockchainMock {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        f.debug_struct("BlockchainMock")
            .field("state", self.state.deref())
            .finish()
    }
}