You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "...", line 14, in <module>
f.call()
File ".../venv/lib/python3.10/site-packages/web3/contract.py", line 957, in call
return call_contract_function(
TypeError: Value after * must be an iterable, not NoneType
How can it be fixed?
The minimal fix may be changing *self.args and **self.kwargs to *(self.args or []) and **(self.kwargs or {}) in the following lines:
What was wrong?
Depending on the way how a
ContractFunction
is instantiated, itsargs
andkwargs
may beNone
, which occurs errors when invokingcall
.Example code
Result
How can it be fixed?
The minimal fix may be changing
*self.args
and**self.kwargs
to*(self.args or [])
and**(self.kwargs or {})
in the following lines:web3.py/web3/contract.py
Lines 1222 to 1223 in c68f656
I can work on creating a PR.
The text was updated successfully, but these errors were encountered: