Skip to content

Commit 6cedc47

Browse files
committed
[wip]: Use solana-program-error dependency
1 parent dcc06b3 commit 6cedc47

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ members = [
1616
edition = "2021"
1717
license = "Apache-2.0"
1818
repository = "https://github.com/anza-xyz/pinocchio"
19-
rust-version = "1.79"
19+
rust-version = "1.84.1"
2020

2121
[workspace.dependencies]
2222
five8_const = "0.1.4"

sdk/pinocchio/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ unexpected_cfgs = { level = "warn", check-cfg = [
2020
[features]
2121
std = []
2222

23+
[dependencies]
24+
solana-program-error = "3.0"
25+
2326
[dev-dependencies]
2427
five8_const = { workspace = true }

sdk/pinocchio/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ pub mod memory;
233233
pub mod program {
234234
pub use crate::cpi::*;
235235
}
236-
pub mod program_error;
237236
pub mod pubkey;
238237
pub mod syscalls;
239238
pub mod sysvars;
240239

241240
#[deprecated(since = "0.7.0", note = "Use the `entrypoint` module instead")]
242241
pub use entrypoint::lazy as lazy_entrypoint;
242+
pub use solana_program_error as program_error;
243243

244244
/// Maximum number of accounts that a transaction may process.
245245
///

0 commit comments

Comments
 (0)