Skip to content

Commit

Permalink
Merge pull request #48 from CoopHive/revert-47-dev-geth
Browse files Browse the repository at this point in the history
Revert "init docker network from dev-geth"
  • Loading branch information
mlegls authored May 31, 2024
2 parents e9faa8f + 72dddd8 commit 989f209
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stack
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ function geth() {

# run local geth in dev mode mounted against local data directory
function dev-geth() {
docker network ls | grep " $GETH_DOCKER_NETWORK " || docker network create "$GETH_DOCKER_NETWORK"
clean
/usr/local/bin/geth \
--datadir /tmp/geth \
Expand Down Expand Up @@ -130,6 +129,8 @@ function faucet() {
local tokenAddress=$(echo -n "$WEB3_TOKEN_ADDRESS" | sed 's/^0x//')
if [[ -n $LOCAL_GETH ]]; then
export WEB3_PROVIDER=${WEB3_PROVIDER:="http://host.docker.internal:8545"}
echo provider: $WEB3_PROVIDER
echo docker network: $GETH_DOCKER_NETWORK
else
export WEB3_PROVIDER=${WEB3_PROVIDER:="http://geth:8545"}
fi
Expand Down

0 comments on commit 989f209

Please sign in to comment.