Skip to content

Commit

Permalink
safer
Browse files Browse the repository at this point in the history
  • Loading branch information
panieldark committed Nov 8, 2023
1 parent 28c5058 commit c62c442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Nocturne Snap",
"proposedName": "Nocturne Snap",
"source": {
"shasum": "Y1d9pqTAXKjR2ReBb8ojP/teC2CGHsnaJHO3uhKMiiY=",
"shasum": "aRzafJIq0kfaFukKWqk804tgiHv81Kt6bLzI20QcQvs=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ const configThunk = thunk(async () => {
return loadNocturneConfigBuiltin("mainnet");
case 5:
return loadNocturneConfigBuiltin("goerli");
default:
case 31_337:
return loadNocturneConfigBuiltin("localhost");
default:
throw new Error(`ChainId ${chainId} not supported`);
}
});
const kvStore = new SnapKvStore();
Expand Down

0 comments on commit c62c442

Please sign in to comment.