Better error if client mixes multicall methods

This commit is contained in:
Mike McLean 2026-06-22 15:39:56 -04:00 committed by Tomas Kopecek
commit 64c06980a7

View file

@ -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, {})