1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::types::{BlockId, Index, H256}; /// Transaction Identifier #[derive(Clone, Debug, PartialEq)] pub enum TransactionId { /// By hash Hash(H256), /// By block and index Block(BlockId, Index), } impl From<H256> for TransactionId { fn from(hash: H256) -> Self { TransactionId::Hash(hash) } }