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; }