Skip to content

Commit

Permalink
update anchor-lang 0.26 -> 0.27
Browse files Browse the repository at this point in the history
RequestNamespace was removed
coral-xyz/anchor#2285
  • Loading branch information
michaeldjeffrey committed Mar 11, 2024
1 parent 3e4d884 commit ba36cdb
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 70 deletions.
104 changes: 43 additions & 61 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -31,7 +31,7 @@ license = "Apache-2.0"
edition = "2021"

[workspace.dependencies]
anchor-client = "0.26"
anchor-client = "0.27.0"
anyhow = {version = "1", features = ["backtrace"]}
bs58 = {version = "0.4", features=["check"]}
thiserror = "1"
Expand Down
3 changes: 1 addition & 2 deletions solana/src/burn.rs
@@ -1,5 +1,5 @@
use crate::{send_with_retry, GetSignature, SolanaRpcError};
use anchor_client::{RequestBuilder, RequestNamespace};
use anchor_client::RequestBuilder;
use async_trait::async_trait;
use helium_anchor_gen::{
anchor_lang::AccountDeserialize,
Expand Down Expand Up @@ -167,7 +167,6 @@ impl SolanaNetwork for SolanaRpc {
&self.cluster,
std::rc::Rc::new(Keypair::from_bytes(&self.keypair).unwrap()),
Some(CommitmentConfig::confirmed()),
RequestNamespace::Global,
);

let accounts = accounts::BurnDelegatedDataCreditsV0 {
Expand Down
11 changes: 5 additions & 6 deletions solana/src/start_boost.rs
@@ -1,11 +1,11 @@
use crate::{send_with_retry, GetSignature, SolanaRpcError};
use anchor_client::{
anchor_lang::{InstructionData, ToAccountMetas},
RequestBuilder, RequestNamespace,
};
use anchor_client::RequestBuilder;
use async_trait::async_trait;
use file_store::hex_boost::BoostedHexActivation;
use helium_anchor_gen::hexboosting::{self, accounts, instruction};
use helium_anchor_gen::{
anchor_lang::{InstructionData, ToAccountMetas},
hexboosting::{self, accounts, instruction},
};
use serde::Deserialize;
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_program::instruction::Instruction;
Expand Down Expand Up @@ -79,7 +79,6 @@ impl SolanaNetwork for SolanaRpc {
&self.cluster,
std::rc::Rc::new(Keypair::from_bytes(&self.keypair).unwrap()),
Some(CommitmentConfig::confirmed()),
RequestNamespace::Global,
);
for update in batch {
let account = accounts::StartBoostV0 {
Expand Down

0 comments on commit ba36cdb

Please sign in to comment.