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

@@ -335,7 +335,7 @@ async fn get_slot_hashes(rpc: &RpcClient) -> Result<SlotHashes, anyhow::Error> {
}
async fn get_square(rpc: &RpcClient) -> Result<Square, anyhow::Error> {
let square_pda = ore_api::state::square_pda(0);
let square_pda = ore_api::state::square_pda();
let account = rpc.get_account(&square_pda.0).await?;
let square = Square::try_from_bytes(&account.data)?;
Ok(*square)