mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-30 07:36:47 +00:00
instruction macro and simplification
This commit is contained in:
@@ -4,7 +4,7 @@ use solana_program::pubkey::Pubkey;
|
||||
|
||||
use crate::consts::TREASURY;
|
||||
|
||||
use super::AccountDiscriminator;
|
||||
use super::OreAccount;
|
||||
|
||||
/// Treasury is a singleton account which is the mint authority for the ORE token and the authority of
|
||||
/// the program's global token account.
|
||||
@@ -17,4 +17,4 @@ pub fn treasury_pda() -> (Pubkey, u8) {
|
||||
Pubkey::find_program_address(&[TREASURY], &crate::id())
|
||||
}
|
||||
|
||||
account!(AccountDiscriminator, Treasury);
|
||||
account!(OreAccount, Treasury);
|
||||
|
||||
Reference in New Issue
Block a user