Skip to content

Commit

Permalink
remove deprecated base64
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentine1898 committed Sep 6, 2023
1 parent 32604a7 commit 5713c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/wasm/src/wasm_planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsValue> = 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()?
}

Expand Down

0 comments on commit 5713c07

Please sign in to comment.