File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ use if_chain::if_chain;
20
20
21
21
dylint_linting:: impl_late_lint! {
22
22
/// **What it does:**
23
- ///
23
+ ///
24
24
/// **Why is this bad?**
25
25
///
26
26
/// **Known problems:** When only one enum is serialized, may miss certain edge cases.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub mod type_cosplay_secure {
25
25
}
26
26
msg ! ( "GM {}" , user. authority) ;
27
27
28
- let extra = AnotherDiscriminant :: try_from_slice ( & ctx. accounts . user . data . borrow ( ) ) . unwrap ( ) ;
28
+ let extra = Instruction :: try_from_slice ( & ctx. accounts . user . data . borrow ( ) ) . unwrap ( ) ;
29
29
Ok ( ( ) )
30
30
}
31
31
}
@@ -60,7 +60,7 @@ pub enum AccountDiscriminant {
60
60
}
61
61
62
62
#[ derive( BorshSerialize , BorshDeserialize ) ]
63
- pub enum AnotherDiscriminant {
63
+ pub enum Instruction {
64
64
Extra ( Extra ) ,
65
65
Metadata ,
66
66
}
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ cpi = ["no-entrypoint"]
16
16
default = []
17
17
18
18
[dependencies ]
19
- anchor-lang = " 0.20.1"
19
+ anchor-lang = " 0.20.1"
You can’t perform that action at this time.
0 commit comments