File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lints/type_cosplay/ui/insecure-3/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use borsh::{BorshDeserialize, BorshSerialize};
3
3
4
4
declare_id ! ( "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS" ) ;
5
5
6
- // This example is insecure because AnotherDiscriminant could be deserialized as a
6
+ // This example is insecure because AccountWithDiscriminant could be deserialized as a
7
7
// User, if the variant is Extra(Extra). The first byte would be 0, to indicate the discriminant
8
8
// in both cases, and the next 32 bytes would be the pubkey.
9
9
#[ program]
@@ -60,7 +60,7 @@ pub enum AccountDiscriminant {
60
60
}
61
61
62
62
#[ derive( BorshSerialize , BorshDeserialize ) ]
63
- pub enum Instruction {
63
+ pub enum AccountWithDiscriminant {
64
64
Extra ( Extra ) ,
65
65
Metadata ,
66
66
}
You can’t perform that action at this time.
0 commit comments