Skip to content

Commit 2b5c4ee

Browse files
authored
Merge pull request #126 from pyth-network/map-table-size
fix: update MAP_TABLE_SIZE to new pythnet limit
2 parents c34d010 + 1c77410 commit 2b5c4ee

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/pyth-sdk-example-anchor-contract.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
2626
- name: Install anchor binaries
2727
run: |
28-
cargo install --git https://github.com/project-serum/anchor avm --locked --force
28+
cargo install --git https://github.com/coral-xyz/anchor avm --tag v0.28.0 --locked --force
2929
avm install 0.28.0
3030
avm use 0.28.0
3131
- name: Build

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyth-sdk-solana/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-sdk-solana"
3-
version = "0.10.2"
3+
version = "0.10.3"
44
authors = ["Pyth Data Foundation"]
55
workspace = "../"
66
edition = "2018"

pyth-sdk-solana/src/state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use crate::PythError;
3030
pub const MAGIC: u32 = 0xa1b2c3d4;
3131
pub const VERSION_2: u32 = 2;
3232
pub const VERSION: u32 = VERSION_2;
33-
pub const MAP_TABLE_SIZE: usize = 640;
33+
pub const MAP_TABLE_SIZE: usize = 5000;
3434
pub const PROD_ACCT_SIZE: usize = 512;
3535
pub const PROD_HDR_SIZE: usize = 48;
3636
pub const PROD_ATTR_SIZE: usize = PROD_ACCT_SIZE - PROD_HDR_SIZE;

0 commit comments

Comments
 (0)