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 {
22
22
pub struct InitializeCounter < ' info > {
23
23
#[ account( mut ) ]
24
24
pub payer : Signer < ' info > ,
25
-
25
+
26
26
#[ account(
27
- init,
28
- space = 8 + Counter :: INIT_SPACE ,
27
+ init,
28
+ space = 8 + Counter :: INIT_SPACE ,
29
29
payer = payer
30
30
) ]
31
31
pub counter : Account < ' info , Counter > ,
@@ -42,4 +42,4 @@ pub struct Increment<'info> {
42
42
#[ derive( InitSpace ) ]
43
43
pub struct Counter {
44
44
count : u64 ,
45
- }
45
+ }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub struct TransferSolWithCpi<'info> {
48
48
pub struct TransferSolWithProgram < ' info > {
49
49
/// CHECK: Use owner constraint to check account is owned by the program
50
50
#[ account(
51
- mut ,
51
+ mut ,
52
52
owner = id( )
53
53
) ]
54
54
payer : UncheckedAccount < ' info > ,
You can’t perform that action at this time.
0 commit comments