File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
counter/anchor/programs/counter_anchor/src
transfer-sol/anchor/programs/transfer-sol/src Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ pub mod counter_anchor {
2222pub struct InitializeCounter < ' info > {
2323 #[ account( mut ) ]
2424 pub payer : Signer < ' info > ,
25-
25+
2626 #[ account(
27- init,
28- space = 8 + Counter :: INIT_SPACE ,
27+ init,
28+ space = 8 + Counter :: INIT_SPACE ,
2929 payer = payer
3030 ) ]
3131 pub counter : Account < ' info , Counter > ,
@@ -42,4 +42,4 @@ pub struct Increment<'info> {
4242#[ derive( InitSpace ) ]
4343pub struct Counter {
4444 count : u64 ,
45- }
45+ }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub struct TransferSolWithCpi<'info> {
4848pub struct TransferSolWithProgram < ' info > {
4949 /// CHECK: Use owner constraint to check account is owned by the program
5050 #[ account(
51- mut ,
51+ mut ,
5252 owner = id( )
5353 ) ]
5454 payer : UncheckedAccount < ' info > ,
You can’t perform that action at this time.
0 commit comments