@@ -82,7 +82,7 @@ impl Default for TransferWithSeedInstructionData {
8282
8383#[ derive( BorshSerialize , BorshDeserialize , Clone , Debug , Eq , PartialEq ) ]
8484pub struct TransferWithSeedInstructionArgs {
85- pub amount : u64 ,
85+ pub lamports : u64 ,
8686 pub from_seed : U64PrefixedStr ,
8787 pub from_owner : Address ,
8888}
@@ -105,7 +105,7 @@ pub struct TransferWithSeedBuilder {
105105 source : Option < solana_address:: Address > ,
106106 base_account : Option < solana_address:: Address > ,
107107 destination : Option < solana_address:: Address > ,
108- amount : Option < u64 > ,
108+ lamports : Option < u64 > ,
109109 from_seed : Option < U64PrefixedStr > ,
110110 from_owner : Option < Address > ,
111111 __remaining_accounts : Vec < solana_instruction:: AccountMeta > ,
@@ -131,8 +131,8 @@ impl TransferWithSeedBuilder {
131131 self
132132 }
133133 #[ inline( always) ]
134- pub fn amount ( & mut self , amount : u64 ) -> & mut Self {
135- self . amount = Some ( amount ) ;
134+ pub fn lamports ( & mut self , lamports : u64 ) -> & mut Self {
135+ self . lamports = Some ( lamports ) ;
136136 self
137137 }
138138 #[ inline( always) ]
@@ -168,7 +168,7 @@ impl TransferWithSeedBuilder {
168168 destination : self . destination . expect ( "destination is not set" ) ,
169169 } ;
170170 let args = TransferWithSeedInstructionArgs {
171- amount : self . amount . clone ( ) . expect ( "amount is not set" ) ,
171+ lamports : self . lamports . clone ( ) . expect ( "lamports is not set" ) ,
172172 from_seed : self . from_seed . clone ( ) . expect ( "from_seed is not set" ) ,
173173 from_owner : self . from_owner . clone ( ) . expect ( "from_owner is not set" ) ,
174174 } ;
@@ -302,7 +302,7 @@ impl<'a, 'b> TransferWithSeedCpiBuilder<'a, 'b> {
302302 source : None ,
303303 base_account : None ,
304304 destination : None ,
305- amount : None ,
305+ lamports : None ,
306306 from_seed : None ,
307307 from_owner : None ,
308308 __remaining_accounts : Vec :: new ( ) ,
@@ -331,8 +331,8 @@ impl<'a, 'b> TransferWithSeedCpiBuilder<'a, 'b> {
331331 self
332332 }
333333 #[ inline( always) ]
334- pub fn amount ( & mut self , amount : u64 ) -> & mut Self {
335- self . instruction . amount = Some ( amount ) ;
334+ pub fn lamports ( & mut self , lamports : u64 ) -> & mut Self {
335+ self . instruction . lamports = Some ( lamports ) ;
336336 self
337337 }
338338 #[ inline( always) ]
@@ -380,7 +380,11 @@ impl<'a, 'b> TransferWithSeedCpiBuilder<'a, 'b> {
380380 #[ allow( clippy:: vec_init_then_push) ]
381381 pub fn invoke_signed ( & self , signers_seeds : & [ & [ & [ u8 ] ] ] ) -> solana_program_error:: ProgramResult {
382382 let args = TransferWithSeedInstructionArgs {
383- amount : self . instruction . amount . clone ( ) . expect ( "amount is not set" ) ,
383+ lamports : self
384+ . instruction
385+ . lamports
386+ . clone ( )
387+ . expect ( "lamports is not set" ) ,
384388 from_seed : self
385389 . instruction
386390 . from_seed
@@ -421,7 +425,7 @@ struct TransferWithSeedCpiBuilderInstruction<'a, 'b> {
421425 source : Option < & ' b solana_account_info:: AccountInfo < ' a > > ,
422426 base_account : Option < & ' b solana_account_info:: AccountInfo < ' a > > ,
423427 destination : Option < & ' b solana_account_info:: AccountInfo < ' a > > ,
424- amount : Option < u64 > ,
428+ lamports : Option < u64 > ,
425429 from_seed : Option < U64PrefixedStr > ,
426430 from_owner : Option < Address > ,
427431 /// Additional instruction accounts `(AccountInfo, is_writable, is_signer)`.
0 commit comments