Skip to content

Commit 2ab2c73

Browse files
committed
clean
1 parent af1db78 commit 2ab2c73

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

.github/workflows/ci-pre-commit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
toolchain: 1.82.0
2424
- name: Install Rust versions
2525
run: |
26-
rustup install 1.66.1
2726
rustup install 1.73.0
2827
- name: Install protoc
2928
uses: arduino/setup-protoc@v3

.github/workflows/ci-remote-executor.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ jobs:
1515
- uses: actions-rs/toolchain@v1
1616
with:
1717
profile: minimal
18-
toolchain: 1.66.1
18+
toolchain: 1.73.0
1919
components: rustfmt, clippy
2020
override: true
2121
- name: Install Solana
2222
run: |
23-
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
24-
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
25-
sh -c "$(curl -sSfL https://release.solana.com/v1.14.18/install)"
23+
sh -c "$(curl -sSfL https://release.solana.com/v1.18.23/install)"
2624
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
2725
- name: Run executor tests
2826
run: cargo test-bpf --manifest-path ./governance/remote_executor/Cargo.toml

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ repos:
3939
- id: cargo-fmt-remote-executor
4040
name: Cargo format for remote executor
4141
language: "rust"
42-
entry: cargo +1.66.1 fmt --manifest-path ./governance/remote_executor/Cargo.toml --all
42+
entry: cargo +1.73.0 fmt --manifest-path ./governance/remote_executor/Cargo.toml --all
4343
pass_filenames: false
4444
files: governance/remote_executor
4545
- id: cargo-clippy-remote-executor
4646
name: Cargo clippy for remote executor
4747
language: "rust"
48-
entry: cargo +1.66.1 clippy --manifest-path ./governance/remote_executor/Cargo.toml --tests -- --deny warnings
48+
entry: cargo +1.73.0 clippy --manifest-path ./governance/remote_executor/Cargo.toml --tests -- --deny warnings
4949
pass_filenames: false
5050
files: governance/remote_executor
5151
# Hooks for cosmwasm contract

governance/remote_executor/programs/remote-executor/src/tests/executor_simulator.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use {
99
CLAIM_RECORD_SEED, EXECUTOR_KEY_SEED,
1010
},
1111
anchor_lang::{
12-
prelude::{AccountMeta, ProgramError, Pubkey, Rent, UpgradeableLoaderState},
12+
prelude::{AccountMeta, ProgramError, Pubkey, Rent},
1313
solana_program::hash::Hash,
1414
AccountDeserialize, AnchorDeserialize, AnchorSerialize,
1515
InstructionData as AnchorInstructionData, Key, Owner, ToAccountMetas,
@@ -18,7 +18,14 @@ use {
1818
read_file, BanksClient, BanksClientError, ProgramTest, ProgramTestBanksClientExt,
1919
},
2020
solana_sdk::{
21-
account::Account, bpf_loader, bpf_loader_upgradeable, instruction::{Instruction, InstructionError}, signature::Keypair, signer::Signer, stake_history::Epoch, system_instruction, transaction::{Transaction, TransactionError}
21+
account::Account,
22+
bpf_loader,
23+
instruction::{Instruction, InstructionError},
24+
signature::Keypair,
25+
signer::Signer,
26+
stake_history::Epoch,
27+
system_instruction,
28+
transaction::{Transaction, TransactionError},
2229
},
2330
std::{collections::HashMap, path::Path},
2431
wormhole_sdk::Chain,
@@ -47,7 +54,7 @@ pub enum VaaAttack {
4754
impl ExecutorBench {
4855
/// Deploys the executor program as upgradable
4956
pub fn new() -> ExecutorBench {
50-
let mut bpf_data = read_file(
57+
let bpf_data = read_file(
5158
std::env::current_dir()
5259
.unwrap()
5360
.join(Path::new("../../target/deploy/remote_executor.so")),
@@ -227,7 +234,16 @@ impl ExecutorSimulator {
227234
signers: &Vec<&Keypair>,
228235
executor_attack: ExecutorAttack,
229236
) -> Result<(), BanksClientError> {
230-
let posted_vaa_data: AnchorVaa = AnchorVaa::try_from_slice(&self.banks_client.get_account(*posted_vaa_address).await.unwrap().unwrap().data[..]).unwrap();
237+
let posted_vaa_data: AnchorVaa = AnchorVaa::try_from_slice(
238+
&self
239+
.banks_client
240+
.get_account(*posted_vaa_address)
241+
.await
242+
.unwrap()
243+
.unwrap()
244+
.data[..],
245+
)
246+
.unwrap();
231247

232248
let mut account_metas = crate::accounts::ExecutePostedVaa::populate(
233249
&self.program_id,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.71.1"
2+
channel = "1.73.0"

0 commit comments

Comments
 (0)