Better error if client mixes multicall methods
This commit is contained in:
parent
9714b5e2ee
commit
64c06980a7
1 changed files with 2 additions and 0 deletions
|
|
@ -3676,6 +3676,8 @@ class MultiCallSession(object):
|
|||
else:
|
||||
batches = [calls]
|
||||
results = []
|
||||
if self._session.multicall:
|
||||
raise MultiCallNotReady('Cannot evaluate multicall session during a legacy multicall')
|
||||
for calls in batches:
|
||||
args = ([c.format() for c in calls],)
|
||||
_results = self._session._callMethod('multiCall', args, {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue