Skip to content

Commit

Permalink
regen proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
alyn509 committed Jan 31, 2025
1 parent 39959cc commit 5095f36
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions contracts/examples/digital-cash/src/digital_cash_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ where
.original_result()
}

pub fn pay_fee_and_fund_esdt<
pub fn pay_fee_and_fund<
Arg0: ProxyArg<ManagedAddress<Env::Api>>,
Arg1: ProxyArg<u64>,
>(
Expand All @@ -135,22 +135,7 @@ where
valability: Arg1,
) -> TxTypedCall<Env, From, To, (), Gas, ()> {
self.wrapped_tx
.raw_call("payFeeAndFundESDT")
.argument(&address)
.argument(&valability)
.original_result()
}

pub fn pay_fee_and_fund_egld<
Arg0: ProxyArg<ManagedAddress<Env::Api>>,
Arg1: ProxyArg<u64>,
>(
self,
address: Arg0,
valability: Arg1,
) -> TxTypedCall<Env, From, To, (), Gas, ()> {
self.wrapped_tx
.raw_call("payFeeAndFundEGLD")
.raw_call("payFeeAndFund")
.argument(&address)
.argument(&valability)
.original_result()
Expand Down Expand Up @@ -251,8 +236,7 @@ where
Api: ManagedTypeApi,
{
pub depositor_address: ManagedAddress<Api>,
pub esdt_funds: ManagedVec<Api, EsdtTokenPayment<Api>>,
pub egld_funds: BigUint<Api>,
pub funds: ManagedVec<Api, EgldOrEsdtTokenPayment<Api>>,
pub valability: u64,
pub expiration_round: u64,
pub fees: Fee<Api>,
Expand Down

0 comments on commit 5095f36

Please sign in to comment.