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
I am using state overrides to chain to together a series of read functions and return bulk data from on chain
Note that this works successfully for me when I have ABI and bytecode for a contract with function snapshotUsers which returned all the owners of a specific ERC721. When I add snapshotTokenMetadata (which returns the metadata for all the tokens in a collection) to the ABI + bytecode - I now get this error
Please include any of the following that are applicable:
The code which produced the error
I've got a github repo here that shows all the scaffolding + contracts and how to run them if that's helpful. Python code below
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 100, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/eth_abi/codec.py", line 181, in decode_abi
return decoder(stream)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/eth_abi/decoding.py", line 127, in __call__
return self.decode(stream)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/eth_utils/functional.py", line 45, in inner
return callback(fn(*args, **kwargs))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/eth_abi/decoding.py", line 173, in decode
yield decoder(stream)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/eth_abi/decoding.py", line 127, in __call__
return self.decode(stream)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/eth_abi/decoding.py", line 144, in decode
stream.push_frame(start_pos)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/eth_abi/decoding.py", line 95, in push_frame
self.seek_in_frame(0)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/eth_abi/decoding.py", line 84, in seek_in_frame
self.seek(self._total_offset + pos, *args, **kwargs)
OverflowError: Python int too large to convert to C ssize_t
What type of node you were connecting to.
Alchemy
This is related to 1634 and 1699 but both seemed to focus on deployed contracts. In my example, I'm taking advantage of state overrides in order to call combinations of read functions without changing state.
The text was updated successfully, but these errors were encountered:
pip freeze
outputWhat was wrong?
I am using state overrides to chain to together a series of read functions and return bulk data from on chain
Note that this works successfully for me when I have ABI and bytecode for a contract with function
snapshotUsers
which returned all the owners of a specific ERC721. When I addsnapshotTokenMetadata
(which returns the metadata for all the tokens in a collection) to the ABI + bytecode - I now get this errorPlease include any of the following that are applicable:
I've got a github repo here that shows all the scaffolding + contracts and how to run them if that's helpful. Python code below
Alchemy
This is related to 1634 and 1699 but both seemed to focus on deployed contracts. In my example, I'm taking advantage of state overrides in order to call combinations of
read
functions without changing state.The text was updated successfully, but these errors were encountered: