This commit is contained in:
Hardhat Chad
2025-09-18 14:52:26 -07:00
parent a03ca6510e
commit ba1ef7270d
3 changed files with 6 additions and 4 deletions

View File

@@ -44,8 +44,8 @@ pub fn miner_pda(authority: Pubkey) -> (Pubkey, u8) {
Pubkey::find_program_address(&[MINER, &authority.to_bytes()], &crate::ID)
}
pub fn square_pda(id: u64) -> (Pubkey, u8) {
Pubkey::find_program_address(&[SQUARE, &id.to_le_bytes()], &crate::ID)
pub fn square_pda() -> (Pubkey, u8) {
Pubkey::find_program_address(&[SQUARE], &crate::ID)
}
pub fn treasury_pda() -> (Pubkey, u8) {