mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
program id
This commit is contained in:
@@ -66,6 +66,9 @@ async fn main() {
|
||||
"reset" => {
|
||||
reset(&rpc, &payer).await.unwrap();
|
||||
}
|
||||
"treasury" => {
|
||||
log_treasury(&rpc).await.unwrap();
|
||||
}
|
||||
"miner" => {
|
||||
log_miner(&rpc, &payer).await.unwrap();
|
||||
}
|
||||
@@ -221,6 +224,13 @@ async fn set_admin(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn log_treasury(_rpc: &RpcClient) -> Result<(), anyhow::Error> {
|
||||
let treasury_address = ore_api::state::treasury_pda().0;
|
||||
println!("Treasury");
|
||||
println!(" address: {}", treasury_address);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn log_miner(
|
||||
rpc: &RpcClient,
|
||||
payer: &solana_sdk::signer::keypair::Keypair,
|
||||
|
||||
Reference in New Issue
Block a user