Skip to content

Commit

Permalink
type-length-value: Revert specifying solana program crate path (#7212)
Browse files Browse the repository at this point in the history
#### Problem

While trying to publish type-length-value, there's an issue because its
error definition requires new changes to spl_program_error.

#### Summary of changes

There are a lot of packages to publish for the new token-2022, so to
keep things simple, revert the usage of the new macro.
  • Loading branch information
joncinque authored Aug 28, 2024
1 parent 8250d12 commit d650e7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/type-length-value/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
use spl_program_error::*;

/// Errors that may be returned by the Token program.
#[spl_program_error(
hash_error_code_start = 1_202_666_432,
solana_program = "solana_program"
)]
#[spl_program_error(hash_error_code_start = 1_202_666_432)]
pub enum TlvError {
/// Type not found in TLV data
#[error("Type not found in TLV data")]
Expand Down

0 comments on commit d650e7f

Please sign in to comment.