Skip to content

Commit

Permalink
Merge pull request #87 from malik672/currency-from
Browse files Browse the repository at this point in the history
feat: add `From` derive to `Currency` enum
  • Loading branch information
malik672 authored Nov 6, 2024
2 parents bd5c71a + e2c0b6f commit 8ae28ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entities/currency.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::prelude::*;
use alloy_primitives::ChainId;
use derive_more::Deref;
use derive_more::{Deref, From};

#[derive(Clone, Debug, Hash, PartialEq, Eq)]
#[derive(Clone, Debug, Hash, PartialEq, Eq, From)]
pub enum Currency {
NativeCurrency(Ether),
Token(Token),
Expand Down

0 comments on commit 8ae28ac

Please sign in to comment.