Skip to content

Commit 72b9912

Browse files
jayantkJayant Krishnamurthy
authored andcommitted
fix build?
1 parent ee8a718 commit 72b9912

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
branches: [ main ]
77

88
env:
9-
SOLANA_VERSION: 1.10.29
10-
SOLANA_DOCKER_IMAGE_HASH: 78900501ccd1ade1bf088fa0830c46bc6095c6799469ff9b335e1f02d957e53a
9+
SOLANA_VERSION: 1.14.7 # Using 1.14.x to have sbf instead of bpf. bpf does not work anymore.
10+
SOLANA_DOCKER_IMAGE_HASH: 9130b4a26ec00c4ba99c023da98c06abb0dba2904c990af7770928e0f7dfd2d5
1111
DOCKER_HUB: docker.io
1212
DOCKER_USER: ${{ secrets.DOCKER_IO_USER }}
1313
IS_RELEASE: ${{

program/rust/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ publish = false
99
bindgen = "0.60.1"
1010

1111
[dependencies]
12-
solana-program = "=1.10.29"
12+
solana-program = "=1.13.3"
1313
bytemuck = "1.11.0"
1414
thiserror = "1.0"
1515

1616
[dev-dependencies]
17-
solana-program-test = "=1.10.29"
18-
solana-sdk = "=1.10.29"
17+
solana-program-test = "=1.13.3"
18+
solana-sdk = "=1.13.3"
1919
tokio = "1.14.1"
2020

2121
[features]

program/rust/src/tests/pyth_simulator.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use std::mem::size_of;
2+
use std::path::Path;
23

34
use bytemuck::{
45
bytes_of,
@@ -14,6 +15,7 @@ use solana_program::rent::Rent;
1415
use solana_program::system_instruction;
1516
use solana_program_test::{
1617
processor,
18+
read_file,
1719
BanksClient,
1820
BanksClientError,
1921
ProgramTest,

pyth/tests/test_publish.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ def get_account_size(acc_address):
7878
"""
7979
PublicKey(acc_address)
8080
solana_client = Client("http://localhost:8899")
81-
data = solana_client.get_account_info(PublicKey(acc_address), encoding = 'base64')['result']['value']['data'][0]
82-
data = base64.b64decode(data)
81+
data = solana_client.get_account_info(PublicKey(acc_address), encoding = 'base64').value.data
8382
return len(data)
8483

8584

0 commit comments

Comments
 (0)