Skip to content

Commit

Permalink
chore: update base64
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Nov 27, 2023
1 parent 6b02da3 commit c47445a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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 moksha-fedimint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ path = "src/lib.rs"

[dependencies]
dotenvy = "0.15.7"
base64 = "0.20.0"
base64 = "0.21.5"
anyhow = { version = "1.0.75", features = ["backtrace"] }
serde_json = "1.0.108"
lightning-invoice = { version = "0.21.0", features = ["serde"] }
Expand Down
3 changes: 2 additions & 1 deletion moksha-fedimint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ impl FedimintWallet {
pub fn serialize_ecash(c: &TieredMulti<SpendableNote>) -> String {
let mut bytes = Vec::new();
Encodable::consensus_encode(c, &mut bytes).expect("encodes correctly");
base64::encode(&bytes)
use base64::{engine::general_purpose, Engine as _};
general_purpose::STANDARD.encode(&bytes)
}

pub async fn send_tokens(
Expand Down

0 comments on commit c47445a

Please sign in to comment.