Skip to content

Commit

Permalink
regen proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
alyn509 committed Oct 4, 2024
1 parent f0f5a41 commit c3c2b81
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions contracts/core/price-aggregator/tests/price_aggregator_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,25 @@ where
}
}

#[rustfmt::skip]
impl<Env, From, To, Gas> PriceAggregatorProxyMethods<Env, From, To, Gas>
where
Env: TxEnv,
Env::Api: VMApi,
From: TxFrom<Env>,
To: TxTo<Env>,
Gas: TxGas<Env>,
{
pub fn upgrade(
self,
) -> TxTypedUpgrade<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_upgrade()
.original_result()
}
}

#[rustfmt::skip]
impl<Env, From, To, Gas> PriceAggregatorProxyMethods<Env, From, To, Gas>
where
Expand Down
4 changes: 3 additions & 1 deletion contracts/core/price-aggregator/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
////////////////////////////////////////////////////

// Init: 1
// Upgrade: 1
// Endpoints: 21
// Async Callback (empty): 1
// Total number of exported functions: 23
// Total number of exported functions: 24

#![no_std]

Expand All @@ -18,6 +19,7 @@ multiversx_sc_wasm_adapter::endpoints! {
multiversx_price_aggregator_sc
(
init => init
upgrade => upgrade
changeAmounts => change_amounts
addOracles => add_oracles
removeOracles => remove_oracles
Expand Down

0 comments on commit c3c2b81

Please sign in to comment.