Skip to content

Commit 39c6cd4

Browse files
committed
[wip]: Use solana-program-error dependency
1 parent 15269d0 commit 39c6cd4

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Cargo.lock

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

sdk/pinocchio/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ unexpected_cfgs = { level = "warn", check-cfg = [
1717
] }
1818

1919
[features]
20-
std = []
20+
std = ["solana-program-error/std"]
21+
22+
[dependencies]
23+
solana-program-error = { version = "2.2.1", git = "https://github.com/kevinheavey/solana-sdk.git", branch = "program-error-pinocchio-compat" }

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)