Update readme and fix pointer bug
This commit is contained in:
parent
aa2779d3a9
commit
d856660d09
|
@ -18,17 +18,15 @@ for running all test. It by default uses the `StatusChain` network.
|
|||
To use the `mainnet` network for testing using network name:
|
||||
|
||||
```bash
|
||||
go test -v ./e2e/... -args -network=mainnet
|
||||
go test -v ./e2e/... -network=mainnet
|
||||
```
|
||||
|
||||
To use the `ropsten` network for testing using network id:
|
||||
|
||||
```bash
|
||||
go test -v ./e2e/... -args -network=3
|
||||
go test -v ./e2e/... -network=3
|
||||
```
|
||||
|
||||
It's important to ensure before the flag that the `-args` flag is included else
|
||||
the `-network` flag or any other custom flag will not be respected or parsed.
|
||||
|
||||
## Run
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ func FirstBlockHash(nodeManager common.NodeManager) (string, error) {
|
|||
// GetNetworkID returns appropriate network id for test based on
|
||||
// default or provided -network flag.
|
||||
func GetNetworkID() int {
|
||||
switch strings.ToLower(networkSelected) {
|
||||
switch strings.ToLower(*networkSelected) {
|
||||
case fmt.Sprintf("%d", params.MainNetworkID), "mainnet":
|
||||
return params.MainNetworkID
|
||||
case fmt.Sprintf("%d", params.RinkebyNetworkID), "rinkeby":
|
||||
|
|
Loading…
Reference in New Issue