Skip to content

Commit

Permalink
Merge pull request #1638 from gfusee/feature/egld_struct_clone
Browse files Browse the repository at this point in the history
Implemented Clone for Egld when possible
  • Loading branch information
andrei-marinica authored May 21, 2024
2 parents 312c161 + edc446f commit 828b155
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ pub struct Egld<EgldValue>(pub EgldValue);

pub type EgldPayment<Api> = Egld<BigUint<Api>>;

impl<EgldValue: Clone> Clone for Egld<EgldValue> {
fn clone(&self) -> Self {
Egld(self.0.clone())
}
}

impl<Env, EgldValue> TxPayment<Env> for Egld<EgldValue>
where
Env: TxEnv,
Expand Down

0 comments on commit 828b155

Please sign in to comment.