diff --git a/crates/primitives/src/common.rs b/crates/primitives/src/common.rs
index 4eef86cd7..355165173 100644
--- a/crates/primitives/src/common.rs
+++ b/crates/primitives/src/common.rs
@@ -35,6 +35,14 @@ impl From
for TxKind {
}
}
+impl From for Option {
+ /// Returns the address of the contract that will be called or will receive the transfer.
+ #[inline]
+ fn from(value: TxKind) -> Self {
+ value.to().copied()
+ }
+}
+
impl TxKind {
/// Returns the address of the contract that will be called or will receive the transfer.
pub const fn to(&self) -> Option<&Address> {