Skip to content

Commit

Permalink
Merge pull request #126 from pyth-network/map-table-size
Browse files Browse the repository at this point in the history
fix: update MAP_TABLE_SIZE to new pythnet limit
  • Loading branch information
cctdaniel authored Jan 16, 2025
2 parents c34d010 + 1c77410 commit 2b5c4ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pyth-sdk-example-anchor-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Install anchor binaries
run: |
cargo install --git https://github.com/project-serum/anchor avm --locked --force
cargo install --git https://github.com/coral-xyz/anchor avm --tag v0.28.0 --locked --force
avm install 0.28.0
avm use 0.28.0
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion 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 pyth-sdk-solana/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyth-sdk-solana"
version = "0.10.2"
version = "0.10.3"
authors = ["Pyth Data Foundation"]
workspace = "../"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion pyth-sdk-solana/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use crate::PythError;
pub const MAGIC: u32 = 0xa1b2c3d4;
pub const VERSION_2: u32 = 2;
pub const VERSION: u32 = VERSION_2;
pub const MAP_TABLE_SIZE: usize = 640;
pub const MAP_TABLE_SIZE: usize = 5000;
pub const PROD_ACCT_SIZE: usize = 512;
pub const PROD_HDR_SIZE: usize = 48;
pub const PROD_ATTR_SIZE: usize = PROD_ACCT_SIZE - PROD_HDR_SIZE;
Expand Down

0 comments on commit 2b5c4ee

Please sign in to comment.