Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle equal signs in network rpc address #1450

Merged
merged 1 commit into from
May 15, 2022

Conversation

palango
Copy link
Contributor

@palango palango commented Feb 22, 2022

Currently, a network RPC address like https://stardust.metis.io/?owner=588 fails with

Brownie v1.17.1 - Python development framework for Ethereum

('host=https://stardust.metis.io/\\?owner\\=588', 'chainid=588')
  File "brownie/_cli/__main__.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()
  File "brownie/_cli/networks.py", line 68, in main
    fn(*args["<arguments>"])
  File "brownie/_cli/networks.py", line 111, in _add
    args = _parse_args(args)
  File "brownie/_cli/networks.py", line 278, in _parse_args
    raise ValueError("Arguments must be given as key=value") from None

This fixed this.

What I did

Related issue: #

How I did it

How to verify it

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

Currently, a network RPC address like `https://stardust.metis.io/?owner=588` fails with
```
Brownie v1.17.1 - Python development framework for Ethereum

('host=https://stardust.metis.io/\\?owner\\=588', 'chainid=588')
  File "brownie/_cli/__main__.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()
  File "brownie/_cli/networks.py", line 68, in main
    fn(*args["<arguments>"])
  File "brownie/_cli/networks.py", line 111, in _add
    args = _parse_args(args)
  File "brownie/_cli/networks.py", line 278, in _parse_args
    raise ValueError("Arguments must be given as key=value") from None
```

This fixed this.
@iamdefinitelyahuman iamdefinitelyahuman merged commit 1c4580b into eth-brownie:master May 15, 2022
@palango palango deleted the patch-1 branch May 15, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants