From 6747fe777cb4e80895b434c557f6ab6c44ba402d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 25 Mar 2023 11:33:40 -0400 Subject: [PATCH] *WIP --- consensus/src/rpc/nimbus_rpc.rs | 2 +- execution/src/rpc/http_rpc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/src/rpc/nimbus_rpc.rs b/consensus/src/rpc/nimbus_rpc.rs index ddf5a00..224af87 100644 --- a/consensus/src/rpc/nimbus_rpc.rs +++ b/consensus/src/rpc/nimbus_rpc.rs @@ -53,7 +53,7 @@ pub struct NimbusRpc {} #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = window)] + #[wasm_bindgen(js_namespace = self)] fn consensus_rpc_handler(data: JsValue) -> Promise; } diff --git a/execution/src/rpc/http_rpc.rs b/execution/src/rpc/http_rpc.rs index 8f8e90c..a24d7e1 100644 --- a/execution/src/rpc/http_rpc.rs +++ b/execution/src/rpc/http_rpc.rs @@ -27,7 +27,7 @@ use wasm_bindgen_futures::JsFuture; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(js_namespace = window)] + #[wasm_bindgen(js_namespace = self)] fn execution_rpc_handler(data: JsValue) -> Promise; }