testnumbat_wasm_debug/
mock_error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug)]
pub struct BlockchainMockError(&'static str);

impl From<&'static str> for BlockchainMockError {
	fn from(s: &'static str) -> BlockchainMockError {
		BlockchainMockError(s)
	}
}

impl BlockchainMockError {
	pub fn as_str(&self) -> &str {
		self.0
	}

	pub fn as_bytes(&self) -> &[u8] {
		self.0.as_bytes()
	}
}