Skip to content

Commit

Permalink
remove unused vva data
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvankhademi committed Dec 31, 2024
1 parent 2c42865 commit 8460993
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions staking/cli/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ use {
},
mem::size_of,
},
wormhole_core_bridge_solana::{
sdk::{
WriteEncodedVaaArgs,
VAA_START,
},
state::EncodedVaa,
wormhole_core_bridge_solana::sdk::{
WriteEncodedVaaArgs,
VAA_START,
},
wormhole_sdk::vaa::{
Body,
Expand Down Expand Up @@ -874,10 +871,6 @@ pub fn update_y(rpc_client: &RpcClient, signer: &dyn Signer, y: u64) {
}

pub fn close_all_publisher_caps(rpc_client: &RpcClient, signer: &dyn Signer) {
let mut data = EncodedVaa::DISCRIMINATOR.to_vec();
data.extend_from_slice(&[1]);
data.extend_from_slice(&signer.pubkey().to_bytes());

rpc_client
.get_program_accounts_with_config(
&publisher_caps::ID,
Expand Down

0 comments on commit 8460993

Please sign in to comment.