Skip to content

Commit

Permalink
chore: remove anvil because it was never used (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhani-cw authored May 22, 2024
1 parent 9f6acea commit c87603f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
6 changes: 0 additions & 6 deletions e2e/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ const config: HardhatUserConfig = {
accountsBalance: "18446744073709551615", // u64::max
},
},
anvil: {
url: "http://localhost:8546",
accounts: {
mnemonic: ACCOUNTS_MNEMONIC,
},
},
stratus: {
url: "http://localhost:3000",
accounts: {
Expand Down
4 changes: 0 additions & 4 deletions e2e/test/helpers/network.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { network } from "hardhat";
import { match } from "ts-pattern";

export enum Network {
Stratus = "stratus",
Hardhat = "hardhat",
Anvil = "anvil",
Unknown = "",
}

Expand All @@ -14,8 +12,6 @@ export function currentNetwork(): Network {
return Network.Stratus;
case "hardhat":
return Network.Hardhat;
case "anvil":
return Network.Anvil;
default:
return Network.Unknown;
}
Expand Down
19 changes: 0 additions & 19 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -175,25 +175,6 @@ e2e network="stratus" test="":
npx hardhat test test/*.test.ts --network {{network}} --grep "{{test}}"
fi

# E2E: Starts and execute Hardhat tests in Anvil
e2e-anvil test="":
#!/bin/bash
if [ -d e2e ]; then
cd e2e
fi

echo "-> Starting Anvil"
anvil --chain-id 2008 --gas-price 0 --block-base-fee-per-gas 0 --port 8546 &

echo "-> Waiting Anvil to start"
wait-service --tcp localhost:8546 -- echo

echo "-> Running E2E tests"
just e2e anvil {{test}}

echo "-> Killing Anvil"
killport 8546

# E2E: Starts and execute Hardhat tests in Hardhat
e2e-hardhat test="":
#!/bin/bash
Expand Down

0 comments on commit c87603f

Please sign in to comment.