From c47445abfcda78e0e09373999f4eadf47d0ad28f Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Mon, 27 Nov 2023 10:04:13 +0100 Subject: [PATCH] chore: update base64 --- Cargo.lock | 2 +- moksha-fedimint/Cargo.toml | 2 +- moksha-fedimint/src/lib.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0374fa9d..c12746a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2494,7 +2494,7 @@ name = "moksha-fedimint" version = "0.1.2" dependencies = [ "anyhow", - "base64 0.20.0", + "base64 0.21.5", "dotenvy", "fedimint-client", "fedimint-core", diff --git a/moksha-fedimint/Cargo.toml b/moksha-fedimint/Cargo.toml index 3c5ac3f8..4c652254 100644 --- a/moksha-fedimint/Cargo.toml +++ b/moksha-fedimint/Cargo.toml @@ -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"] } diff --git a/moksha-fedimint/src/lib.rs b/moksha-fedimint/src/lib.rs index b52e9f47..38855ebc 100644 --- a/moksha-fedimint/src/lib.rs +++ b/moksha-fedimint/src/lib.rs @@ -121,7 +121,8 @@ impl FedimintWallet { pub fn serialize_ecash(c: &TieredMulti) -> 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(