diff --git a/src/types/transaction_id.rs b/src/types/transaction_id.rs index 0200861e..c34c79a2 100644 --- a/src/types/transaction_id.rs +++ b/src/types/transaction_id.rs @@ -8,3 +8,9 @@ pub enum TransactionId { /// By block and index Block(BlockId, Index), } + +impl From for TransactionId { + fn from(hash: H256) -> Self { + TransactionId::Hash(hash) + } +}