Skip to content

Commit

Permalink
fix base64 encoding (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Oct 30, 2023
1 parent e20987e commit af4da6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "solana-geyser-sqs"
version = "0.3.0+solana.1.16.17"
version = "0.3.1+solana.1.16.17"
edition = "2018"
publish = false

Expand Down
4 changes: 2 additions & 2 deletions src/sqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl SendMessage {
"owner": account.owner.to_string(),
"executable": account.executable,
"rent_epoch": account.rent_epoch,
"data": general_purpose::STANDARD_NO_PAD.encode(compression.compress(&account.data)?.as_ref()),
"data": general_purpose::STANDARD.encode(compression.compress(&account.data)?.as_ref()),
"write_version": account.write_version,
"txn_signature": account.txn_signature.map(|s| s.to_string()).unwrap_or_default(),
"slot": account.slot,
Expand All @@ -288,7 +288,7 @@ impl SendMessage {
"type": "transaction",
"filters": filters,
"signature": transaction.signature.to_string(),
"transaction": general_purpose::STANDARD_NO_PAD.encode(bincode::serialize(&transaction.transaction.to_versioned_transaction()).unwrap()),
"transaction": general_purpose::STANDARD.encode(bincode::serialize(&transaction.transaction.to_versioned_transaction()).unwrap()),
"meta": transaction.meta,
"slot": transaction.slot,
"block_time": transaction.block_time.unwrap_or_default(),
Expand Down

0 comments on commit af4da6b

Please sign in to comment.