Skip to content

Commit

Permalink
fix: typo for initEmptySession function (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwaits authored Dec 5, 2024
1 parent aaaebac commit 1e73109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/clarinet-sdk-wasm/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ impl SDK {
}
}

#[wasm_bindgen(js_name=initEmtpySession)]
#[wasm_bindgen(js_name=initEmptySession)]
pub async fn init_empty_session(&mut self) -> Result<(), String> {
let session = Session::new(SessionSettings::default());
self.session = Some(session);
Expand Down
2 changes: 1 addition & 1 deletion components/clarinet-sdk/browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ There are two ways to use the sdk in the browser:
- With an empty clarinet session:
```js
const simnet = await initSimnet();
await simnet.initEmtpySession();
await simnet.initEmptySession();
simnet.runSnippet("(+ 1 2)")
```

Expand Down

0 comments on commit 1e73109

Please # to comment.