Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions sdk/pinocchio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ unexpected_cfgs = { level = "warn", check-cfg = [
[features]
std = []

[dependencies]
solana-program-error = "3.0"

[dev-dependencies]
five8_const = { workspace = true }
6 changes: 2 additions & 4 deletions sdk/pinocchio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,14 @@ pub mod memory;
pub mod program {
pub use crate::cpi::*;
}
pub mod program_error;
pub mod pubkey;
pub mod syscalls;
pub mod sysvars;

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

/// Maximum number of accounts that a transaction may process.
///
Expand All @@ -259,9 +260,6 @@ const BPF_ALIGN_OF_U128: usize = 8;
/// Return value for a successful program execution.
pub const SUCCESS: u64 = 0;

/// The result of a program execution.
pub type ProgramResult = Result<(), program_error::ProgramError>;

/// Module with functions to provide hints to the compiler about how code
/// should be optimized.
pub mod hint {
Expand Down
296 changes: 0 additions & 296 deletions sdk/pinocchio/src/program_error.rs

This file was deleted.