Skip to content

Commit

Permalink
proxy compare fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaicalinluca committed May 29, 2024
1 parent 7b5f824 commit bbfd7b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/feature-tests/abi-tester/sc-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ add-endpoints = [

[[proxy]]
path = "src/abi_proxy.rs"

[[proxy.path-rename]]
from = "multiversx_sc::types::managed::wrapped::managed_decimal::"
to = ""
9 changes: 9 additions & 0 deletions contracts/feature-tests/abi-tester/src/abi_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,3 +578,12 @@ pub enum ExplicitDiscriminantMixed {
b: u16,
},
}

#[type_abi]
#[derive(TopEncode, TopDecode)]
pub struct ManagedDecimalWrapper<Api>
where
Api: ManagedTypeApi,
{
pub field: ManagedDecimal<Api, ConstDecimals<2>>,
}

0 comments on commit bbfd7b7

Please sign in to comment.