Selaa lähdekoodia

👿

if you like it then you should have put a box 'round it

Change-Id: I504dd476f53bb5d0dd101a5278f485e83b32bd08
Hendrik Hofstadt 4 vuotta sitten
vanhempi
sitoutus
a8a8cbe183

+ 1 - 1
solana/solitaire/program/src/processors/peel.rs

@@ -226,7 +226,7 @@ impl<
             };
         }
 
-        Ok(Data(ctx.info().clone(), data))
+        Ok(Data(Box::new(ctx.info().clone()), data))
     }
 
     fn deps() -> Vec<Pubkey> {

+ 1 - 1
solana/solitaire/program/src/types/accounts.rs

@@ -46,7 +46,7 @@ pub enum AccountState {
 /// Data<(), { AccountState::Uninitialized }>
 #[rustfmt::skip]
 pub struct Data<'r, T: Owned + Default, const IsInitialized: AccountState> (
-    pub Info<'r>,
+    pub Box<Info<'r>>,
     pub T,
 );