Skip to content

Commit 96785bb

Browse files
authored
generic-token: make consts used in rpc pub (solana-program#75)
1 parent 4b052d1 commit 96785bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

generic-token/src/token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ solana_pubkey::declare_id!("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
1919
close_authority: COption<Pubkey>,
2020
}
2121
*/
22-
const SPL_TOKEN_ACCOUNT_MINT_OFFSET: usize = 0;
23-
const SPL_TOKEN_ACCOUNT_OWNER_OFFSET: usize = 32;
22+
pub const SPL_TOKEN_ACCOUNT_MINT_OFFSET: usize = 0;
23+
pub const SPL_TOKEN_ACCOUNT_OWNER_OFFSET: usize = 32;
2424
const SPL_TOKEN_ACCOUNT_AMOUNT_OFFSET: usize = 64;
2525
const SPL_TOKEN_ACCOUNT_STATE_OFFSET: usize = 108;
2626
pub(crate) const SPL_TOKEN_ACCOUNT_LENGTH: usize = 165;

generic-token/src/token_2022.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::token::{
88
solana_pubkey::declare_id!("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
99

1010
// `spl_token_program_2022::extension::AccountType::Account` ordinal value
11-
const ACCOUNTTYPE_ACCOUNT: u8 = 2;
11+
pub const ACCOUNTTYPE_ACCOUNT: u8 = 2;
1212

1313
// Token2022 enforces that TLV data cannot make a Mint or Account that is precisely
1414
// the length of a Multisig, to allow them to be distinguished.

0 commit comments

Comments
 (0)