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
Intermittently when trying to get the symbol from ERC20 contracts, we get these errors:
Traceback (most recent call last):
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\web3\contract\utils.py", line 111, in call_contract_function
output_data = w3.codec.decode(output_types, return_data)
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_abi\codec.py", line 145, in decode
return decoder(stream)
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_abi\decoding.py", line 129, in __call__
return self.decode(stream)
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_utils\functional.py", line 45, in inner
return callback(fn(*args, **kwargs))
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_abi\decoding.py", line 175, in decode
yield decoder(stream)
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_abi\decoding.py", line 129, in __call__
return self.decode(stream)
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_abi\decoding.py", line 144, in decode
start_pos = decode_uint_256(stream)
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_abi\decoding.py", line 129, in __call__
return self.decode(stream)
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_abi\decoding.py", line 199, in decode
raw_data = self.read_data_from_stream(stream)
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\eth_abi\decoding.py", line 306, in read_data_from_stream
raise InsufficientDataBytes(
eth_abi.exceptions.InsufficientDataBytes: Tried to read 32 bytes. Only got 0 bytes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\nok13\Documents\GitHub\WAGMI\main.py", line 100, in <module>
start_scanner()
File "C:\Users\nok13\Documents\GitHub\WAGMI\main.py", line 37, in start_scanner
scanner.start()
File "C:\Users\nok13\Documents\GitHub\WAGMI\modules\scanner\scanner_main.py", line 75, in start
token2_symbol = token2.functions.symbol().call()
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\web3\contract\contract.py", line 461, in call
return call_contract_function(
File "C:\Users\nok13\Documents\GitHub\WAGMI\venv\lib\site-packages\web3\contract\utils.py", line 129, in call_contract_function
raise BadFunctionCallOutput(msg) from e
web3.exceptions.BadFunctionCallOutput: Could not decode contract function call to symbol with return data: b'', output_types: ['string']
Function where it originates in our code seems to be token2.functions.symbol().call(), line 75, in scanner_main.py
The text was updated successfully, but these errors were encountered:
Intermittently when trying to get the symbol from ERC20 contracts, we get these errors:
Function where it originates in our code seems to be
token2.functions.symbol().call()
, line 75, in scanner_main.pyThe text was updated successfully, but these errors were encountered: