Skip to content

Commit f7e0f02

Browse files
committed
remove unnecessary makefile message
1 parent a51170c commit f7e0f02

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

Makefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
VERSION := $(shell echo $(shell git describe --tags || git branch --show-current) | sed 's/^v//')
2-
IS_SUDO_USER := $(shell if [ "$(shell whoami)" = "root" ] || [ "$(shell groups | grep -e 'sudo' -e 'admin' -e 'google-sudoers' | wc -l)" = "1" ]; then echo "1"; fi)
32
GO_BIN := $(shell echo $(shell which go || echo "/usr/local/go/bin/go" ))
43

54
###############################################################################
@@ -15,7 +14,7 @@ BUILD_FLAGS := -ldflags '$(LD_FLAGS)'
1514
###############################################################################
1615

1716
build: go.sum
18-
@echo "building devd binary..."
17+
@echo "Building devd binary..."
1918
@echo "Flags $(BUILD_FLAGS)"
2019
@go build -mod=readonly $(BUILD_FLAGS) -o build/devd ./cmd/devd
2120
@echo "Builded successfully"
@@ -29,11 +28,5 @@ install: go.sum
2928
@echo "Build flags: $(BUILD_FLAGS)"
3029
@echo "Installing devd binary..."
3130
@$(GO_BIN) install -mod=readonly $(BUILD_FLAGS) ./cmd/devd
32-
@echo " [v] Installed in GOPATH/bin"
33-
@if [ "$(shell uname)" = "Linux" ] && [ "$(IS_SUDO_USER)" = "1" ]; then \
34-
sudo mv $(shell $(GO_BIN) env GOPATH)/bin/devd /usr/local/bin/devd; \
35-
echo " [v] Installed as global command"; \
36-
else \
37-
echo " [x] (Skipped) Install as global command"; \
38-
fi
31+
@echo "Installed successfully"
3932
.PHONY: install

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ go install -v github.com/bcdevtools/devd/v2/cmd/devd@latest
1010

1111
Lazy RPC setting
1212
```bash
13-
export DEVD_EVM_RPC='https://api.securerpc.com/v1'
13+
export DEVD_EVM_RPC='https://evm.example.com:8545'
1414
```
1515
_By setting this environment variable, you don't need to pass `--rpc` flag everytime for non-localhost EVM Json-RPC_
1616
___
1717
Lazy Rest API setting
1818
```bash
19-
export DEVD_COSMOS_REST='https://cosmos.example.com:1317'
19+
export DEVD_COSMOS_REST='https://ethermint-rest.example.com:1317'
2020
```
2121
_By setting this environment variable, you don't need to pass `--rest` flag everytime for non-localhost Rest API_
2222

2323
#### Query account balance
2424

2525
```bash
26-
devd query balance [account addr] [optional ERC20 addr..] [--erc20 --rest http://localhost:1317] [--rpc http://localhost:8545]
26+
devd query balance [account addr] [optional ERC20 addr..] [--erc20] [--rpc http://localhost:8545]
2727
# devd q b 0xAccount
2828
# devd q b ethm1account
2929
# devd q b 0xAccount 0xErc20Contract
3030
# devd q b ethm1account 0xErc20Contract1 0xErc20Contract2
31-
# devd q b 0xAccount --erc20
31+
# devd q b 0xAccount --erc20 [--rest http://localhost:1317]
3232
```
33-
_`--erc20` flag, if provided, will attempt to fetch user balance of contracts on `x/erc20` module and virtual frontier bank contracts. This request additional rest endpoint provided, or use default 1317._
33+
_`--erc20` flag, if provided, will attempt to fetch user balance of contracts on `x/erc20` module and virtual frontier bank contracts. This request additional Rest-API endpoint provided, or use default 1317._
3434

3535
#### Query ERC20 token information
3636

0 commit comments

Comments
 (0)