Skip to content

Commit e6525c4

Browse files
committed
fix build after rebase;
1 parent a9b11ee commit e6525c4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

bindings/ergo-lib-wasm/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ getrandom = {version = "0.2.3", features = ["js"]}
2929
console_error_panic_hook = { version = "0.1.6", optional = true }
3030

3131
derive_more = "0.99"
32-
base16 = "0.2.1"
3332

3433
[dependencies.serde_with]
3534
version = "1.9.1"

bindings/ergo-lib-wasm/src/prover_result.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ impl ProverResult {
2525

2626
/// JSON representation as text (compatible with Ergo Node/Explorer API, numbers are encoded as numbers)
2727
pub fn to_json(&self) -> Result<String, JsValue> {
28-
serde_json::to_string_pretty(&self.0.clone())
29-
.map_err(|e| JsValue::from_str(&format!("{}", e)))
28+
serde_json::to_string_pretty(&self.0.clone()).map_err(to_js)
3029
}
3130
}

0 commit comments

Comments
 (0)