-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sign batched queued mints transaction #133
Conversation
api/src/events/solana.rs
Outdated
for (sig1, sig2, sig3) in signatures { | ||
let key = key.clone(); | ||
|
||
let sig1_bytes = <[u8; 64]>::from_hex(sig1.signature.full_sig)?; | ||
let sig1 = bs58::encode(sig1_bytes).into_string(); | ||
|
||
let sig3_bytes = <[u8; 64]>::from_hex(sig3.signature.full_sig)?; | ||
let sig3 = bs58::encode(sig3_bytes).into_string(); | ||
|
||
let mut signed_message_signatures = vec![sig1, sig3]; | ||
|
||
// this will be true if mint is uncompressed | ||
if let Some(sig2) = sig2 { | ||
signed_message_signatures.insert(1, sig2); | ||
} | ||
|
||
let txn = SolanaTransactionResult { | ||
serialized_message: None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is happening here? Why assume 3 sigs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok this is a dedicated handler for the mint batched that is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncompressed mint has one extra signature at idx 1 . Maybe there is a cleaner way to do this.
No description provided.