Skip to content

Commit 6473fc0

Browse files
committed
Add transparent attribute
1 parent e5f590f commit 6473fc0

File tree

1 file changed

+6
-0
lines changed
  • examples/cis5-smart-contract-wallet/src

1 file changed

+6
-0
lines changed

examples/cis5-smart-contract-wallet/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ pub struct WithdrawBatch<T: SigningAmount> {
583583
/// `withdrawNativeCurrency/withdrawCis2Tokens`.
584584
#[derive(Serialize, SchemaType)]
585585
#[concordium(transparent)]
586+
#[repr(transparent)]
586587
pub struct WithdrawParameter<T: SigningAmount> {
587588
/// List of withdraw batches.
588589
#[concordium(size_length = 2)]
@@ -1007,6 +1008,7 @@ pub struct InternalTransferBatch<T: SigningAmount> {
10071008
/// `internalTransferNativeCurrency/internalTransferCis2Tokens`.
10081009
#[derive(Serialize, SchemaType)]
10091010
#[concordium(transparent)]
1011+
#[repr(transparent)]
10101012
pub struct InternalTransferParameter<T: SigningAmount> {
10111013
/// List of transfer batches.
10121014
#[concordium(size_length = 2)]
@@ -1320,6 +1322,7 @@ fn contract_supports(
13201322
/// The parameter type for the contract function `balanceOfNativeCurrency`.
13211323
#[derive(Serialize, SchemaType)]
13221324
#[concordium(transparent)]
1325+
#[repr(transparent)]
13231326
pub struct NativeCurrencyBalanceOfParameter {
13241327
/// List of balance queries.
13251328
#[concordium(size_length = 2)]
@@ -1331,6 +1334,7 @@ pub struct NativeCurrencyBalanceOfParameter {
13311334
/// It consists of the list of results corresponding to the list of queries.
13321335
#[derive(Serialize, SchemaType, PartialEq, Eq)]
13331336
#[concordium(transparent)]
1337+
#[repr(transparent)]
13341338
pub struct NativeCurrencyBalanceOfResponse(#[concordium(size_length = 2)] pub Vec<Amount>);
13351339

13361340
/// Conversion helper function.
@@ -1380,6 +1384,7 @@ pub struct Cis2TokensBalanceOfQuery {
13801384
/// The parameter type for the contract function `balanceOfCis2Tokens`.
13811385
#[derive(Serialize, SchemaType)]
13821386
#[concordium(transparent)]
1387+
#[repr(transparent)]
13831388
pub struct Cis2TokensBalanceOfParameter {
13841389
/// List of balance queries.
13851390
#[concordium(size_length = 2)]
@@ -1391,6 +1396,7 @@ pub struct Cis2TokensBalanceOfParameter {
13911396
/// It consists of the list of results corresponding to the list of queries.
13921397
#[derive(Serialize, SchemaType, PartialEq, Eq)]
13931398
#[concordium(transparent)]
1399+
#[repr(transparent)]
13941400
pub struct Cis2TokensBalanceOfResponse(#[concordium(size_length = 2)] pub Vec<ContractTokenAmount>);
13951401

13961402
/// Conversion helper function.

0 commit comments

Comments
 (0)