From edc446f9b52835cfd2ad8da3827804d396f32a55 Mon Sep 17 00:00:00 2001 From: Fusee Date: Tue, 21 May 2024 00:32:52 +0200 Subject: [PATCH] implemented Clone for Egld when possible --- .../src/types/interaction/tx_payment/tx_payment_egld.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/base/src/types/interaction/tx_payment/tx_payment_egld.rs b/framework/base/src/types/interaction/tx_payment/tx_payment_egld.rs index d63635e53e..28ebea24ac 100644 --- a/framework/base/src/types/interaction/tx_payment/tx_payment_egld.rs +++ b/framework/base/src/types/interaction/tx_payment/tx_payment_egld.rs @@ -15,6 +15,12 @@ pub struct Egld(pub EgldValue); pub type EgldPayment = Egld>; +impl Clone for Egld { + fn clone(&self) -> Self { + Egld(self.0.clone()) + } +} + impl TxPayment for Egld where Env: TxEnv,