Skip to content

Commit

Permalink
Merge pull request #134 from holaplex/abdul/fix-content-decoding
Browse files Browse the repository at this point in the history
fix decoding of message for batched mint
  • Loading branch information
imabdulbasit authored Oct 18, 2023
2 parents 17f65e0 + 641d6af commit 935da1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions api/src/events/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ pub enum ProcessorError {
DbError(#[from] DbErr),
#[error("Error sending message")]
SendError(#[from] SendError),
#[error("Base58 decode error")]
Bs58DecodeError(#[from] bs58::decode::Error),
}

pub type Result<T> = std::result::Result<T, ProcessorError>;
Expand Down
2 changes: 1 addition & 1 deletion api/src/events/solana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ impl<'a> Solana<'a> {
for ((sig1, sig2), sig3) in signatures {
let key = key.clone();
let mut signatures = Vec::new();
let content = bs58::decode(sig1.content).into_vec()?;
let content = hex::decode(sig1.content)?;

let sig1_bytes = <[u8; 64]>::from_hex(sig1.signature.full_sig)?;
signatures.push(bs58::encode(sig1_bytes).into_string());
Expand Down

0 comments on commit 935da1e

Please sign in to comment.