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

fix decoding of message for batched mint #134

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 0 additions & 2 deletions api/src/events/processor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use fireblocks::Fireblocks;
use hub_core::{
bs58,

Check warning on line 3 in api/src/events/processor.rs

View workflow job for this annotation

GitHub Actions / Cargo Test

unused import: `bs58`
prelude::*,
producer::{Producer, SendError},
thiserror, uuid,
Expand Down Expand Up @@ -71,8 +71,6 @@
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
Loading