Development resources at your finger tips
Build with the coolest Web3 projects
Recurring funding for Open Source
Ethical ads to power Open Source
Learn about Web3 & earn rewards
Show appreciation for each other
Meet fellow developers, designers, futurists and more. Collaborate and BUIDL awesome projects together.
Discover great web3 organizations, work on meaningful projects and build relationships with like minded people. Browse Tribes
Meet the top hunters and contributors from our community.
KERNEL is an 8-week, invite-only program for top tech talent looking to build relationships, products, and companies in blockchain and Web 3. 100 tal…
Heyo Gitcoiners! With an entire city of hackers, coders and blockchain innovators relocated on our platform, the atmosphere is just buzzing with crea…
Type in [[ 2- term.length]] more characters to get results
[[ result.title ]]
[[ result.description | truncate(70) ]]
No matches found
Gitcoin is GDPR complaint. Learn more in
Gitcoin's Terms & Conditions.
Check out the Issue Explorer
Looking to fund some work? You can submit a new Funded Issue here.
* Version: 1.9.0
* Python: 3.5
* OS: osx/linux/win
### What was wrong?
`merge_and_kwargs` throws an exception when it tries to construct an error message if you give invalid kwargs for a function constructor.
File "/Users/mikkoohtamaa/code/tm/venv/lib/python3.5/site-packages/web3/contract.py", line 307, in deploy
deploy_transaction['data'] = cls._encode_constructor_data(args, kwargs)
File "/Users/mikkoohtamaa/code/tm/venv/lib/python3.5/site-packages/eth_utils/string.py", line 85, in inner
return force_obj_to_text(fn(*args, **kwargs))
File "/Users/mikkoohtamaa/code/tm/venv/lib/python3.5/site-packages/web3/contract.py", line 745, in _encode_constructor_data
arguments = merge_args_and_kwargs(constructor_abi, args, kwargs)
File "/Users/mikkoohtamaa/code/tm/venv/lib/python3.5/site-packages/eth_utils/string.py", line 71, in inner
return fn(*text_args, **text_kwargs)
File "/Users/mikkoohtamaa/code/tm/venv/lib/python3.5/site-packages/web3/utils/abi.py", line 192, in merge_args_and_kwargs
### How can it be fixed?
Assume there is no `function["name"]`, because constructor does not have it, when creating error messages https://github.com/ethereum/web3.py/blob/c32816d74a74be76cbb9987b594ee59826937673/web3/utils/abi.py#L212