From 5713c07a77ec1094f56ec8a8467af9481f9a7cd2 Mon Sep 17 00:00:00 2001 From: Valentine Date: Wed, 6 Sep 2023 18:51:44 +0300 Subject: [PATCH] remove deprecated base64 --- crates/wasm/src/wasm_planner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wasm/src/wasm_planner.rs b/crates/wasm/src/wasm_planner.rs index c28c95571d..99ffdb318d 100644 --- a/crates/wasm/src/wasm_planner.rs +++ b/crates/wasm/src/wasm_planner.rs @@ -182,11 +182,11 @@ pub async fn get_swap_by_commitment(swap_commitment: StateCommitment) -> Option< let store = tx.object_store("swaps").ok()?; let value: Option = store - .get_owned(base64::encode(swap_commitment.inner)) + .get_owned(base64::Engine::encode(&base64::engine::general_purpose::STANDARD,swap_commitment.inner)) .ok()? .await .ok()?; - +r serde_wasm_bindgen::from_value(value?).ok()? }