Skip to content

Commit

Permalink
cleanup, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Dec 11, 2024
1 parent 65f9681 commit de3b6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/scenario/tests/contract_without_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ mod sample_adder {
/////////////////////////////////////////////////////////////////////////////////////////////////
pub trait AutoImpl: multiversx_sc::contract_base::ContractBase {}

// impl<C> super::module_1::AutoImpl for C where C: AutoImpl {}

impl<C> Adder for C
where
C: AutoImpl + super::module_1::AutoImpl,
Expand Down Expand Up @@ -639,6 +637,8 @@ mod sample_adder {
A: multiversx_sc::api::VMApi,
{
fn call(&self, fn_name: &str) -> bool {
// creating a new object, which we can mutate
// because of dynamic traits, we cannot move `self`
let mut obj = multiversx_sc::contract_base::UniversalContractObj::<A>::new();
EndpointWrappers::call(&mut obj, fn_name)
}
Expand Down

0 comments on commit de3b6df

Please sign in to comment.