Skip to content

Commit 117b54d

Browse files
oslfmtsmoelius
authored andcommitted
update enum name to be more reflective
1 parent f160700 commit 117b54d

File tree

1 file changed

+2
-2
lines changed
  • lints/type_cosplay/ui/insecure-3/src

1 file changed

+2
-2
lines changed

lints/type_cosplay/ui/insecure-3/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use borsh::{BorshDeserialize, BorshSerialize};
33

44
declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");
55

6-
// This example is insecure because AnotherDiscriminant could be deserialized as a
6+
// This example is insecure because AccountWithDiscriminant could be deserialized as a
77
// User, if the variant is Extra(Extra). The first byte would be 0, to indicate the discriminant
88
// in both cases, and the next 32 bytes would be the pubkey.
99
#[program]
@@ -60,7 +60,7 @@ pub enum AccountDiscriminant {
6060
}
6161

6262
#[derive(BorshSerialize, BorshDeserialize)]
63-
pub enum Instruction {
63+
pub enum AccountWithDiscriminant {
6464
Extra(Extra),
6565
Metadata,
6666
}

0 commit comments

Comments
 (0)