Skip to content

Commit

Permalink
chore(wasm): update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-melnychuk committed Oct 30, 2024
1 parent 55b156a commit 08326e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/beerus-web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async fn check(config: &dto::Config) -> Result<(), JsValue> {
let client = reqwest::Client::new();
let ethereum_chain = call(&client, &config.ethereum_url, "eth_chainId").await?;
let starknet_chain = call(&client, &config.starknet_url, "starknet_chainId").await?;
match (&ethereum_chain, &starknet_chain) {
match (ethereum_chain.as_str(), starknet_chain.as_str()) {
(MAINNET_ETHEREUM_CHAINID, MAINNET_STARKNET_CHAINID) => Ok(()),
(SEPOLIA_ETHEREUM_CHAINID, SEPOLIA_STARKNET_CHAINID) => Ok(()),
_ => {
Expand Down
4 changes: 3 additions & 1 deletion web/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
rm -rf dist/ .parcel-cache/

cd beerus-web
rm -rf target/ pkg/ .parcel-cache/
rm -rf target/ pkg/

wasm-pack build --target web

Expand Down

0 comments on commit 08326e0

Please sign in to comment.