Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lang: fix error mod exports #1426

Merged
merged 5 commits into from
Feb 10, 2022
Merged
Changes from 1 commit
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
Next Next commit
lang: fix error mod exports
  • Loading branch information
paul-schaaf committed Feb 10, 2022
commit c7ec95f2675c2c83b61d53863e9d824c57dbeb23
13 changes: 4 additions & 9 deletions lang/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ mod bpf_upgradeable_state;
mod common;
pub mod context;
mod ctor;

armaniferrante marked this conversation as resolved.
Show resolved Hide resolved
pub mod error;
/// The starting point for user defined error codes.
pub const ERROR_CODE_OFFSET: u32 = 6000;

armaniferrante marked this conversation as resolved.
Show resolved Hide resolved
#[doc(hidden)]
pub mod idl;
mod system_program;
Expand Down Expand Up @@ -271,20 +275,11 @@ pub mod prelude {
/// Internal module used by macros and unstable apis.
#[doc(hidden)]
pub mod __private {
// Modules with useful information for users
// don't use #[doc(hidden)] on these
pub use crate::error::ErrorCode;

/// The discriminator anchor uses to mark an account as closed.
pub const CLOSED_ACCOUNT_DISCRIMINATOR: [u8; 8] = [255, 255, 255, 255, 255, 255, 255, 255];

/// The starting point for user defined error codes.
pub const ERROR_CODE_OFFSET: u32 = 6000;

pub use crate::ctor::Ctor;

pub use crate::error::Error;

pub use anchor_attribute_account::ZeroCopyAccessor;

pub use anchor_attribute_event::EventIndex;
Expand Down