2021-11-25 16:01:32.381657 [debug ] Got new events [raisync.chain] events=(AttributeDict({'args': AttributeDict({'requestId': 3, 'targetChainId': 421611, 'targetTokenAddress': '0xCFeb147eE74132BD506065130cC6EaCa2FE9a73F', 'targetAddress': '0x6D5F4B27d1200770f1e26Ce1C6A5E2Dd90f70Cac', 'amount': 12}), 'event': 'RequestCreated', 'logIndex': 0, 'transactionIndex': 0, 'transactionHash': HexBytes('0x64c16e90e1e67fa1c4b2b35c64282d4389981fe277122fb6be71dceba09b9530'), 'address': '0x6D5F4B27d1200770f1e26Ce1C6A5E2Dd90f70Cac', 'blockHash': HexBytes('0x6e2808d8d276105e8c49f6406d20a67b92c5e732b30794c5415a02c7ab48cc73'), 'blockNumber': 142622}),)
2021-11-25 16:01:33.512178 [debug ] Fetching RequestCreated events [raisync.chain] from_block=142623 to_block=142623
Exception in thread RequestHandler: https://rinkeby.arbitrum.io/rpc:
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/paul/Projects/brainbot/raisync/raisync/chain.py", line 243, in _thread_func
self._fulfill_request(request)
File "/Users/paul/Projects/brainbot/raisync/raisync/chain.py", line 267, in _fulfill_request
txn_hash = fill_manager.functions.fillRequest(
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/contract.py", line 999, in transact
return transact_with_contract_function(
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/contract.py", line 1592, in transact_with_contract_function
txn_hash = web3.eth.send_transaction(transact_transaction)
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/eth.py", line 695, in send_transaction
return self._send_transaction(transaction)
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/manager.py", line 186, in request_blocking
response = self._make_request(method, params)
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/manager.py", line 147, in _make_request
return request_func(method, params)
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/middleware/signing.py", line 151, in middleware
transaction = format_and_fill_tx(params[0])
File "cytoolz/functoolz.pyx", line 505, in cytoolz.functoolz.Compose.__call__
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/_utils/transactions.py", line 102, in fill_transaction_defaults
default_val = default_getter(web3, transaction)
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/_utils/transactions.py", line 66, in <lambda>
'gas': lambda web3, tx: web3.eth.estimate_gas(tx),
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/eth.py", line 735, in estimate_gas
return self._estimate_gas(transaction, block_identifier)
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/manager.py", line 187, in request_blocking
return self.formatted_response(response,
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/manager.py", line 167, in formatted_response
apply_error_formatters(error_formatters, response)
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/manager.py", line 67, in apply_error_formatters
formatted_resp = pipe(response, error_formatters)
File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe
File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe
File "/Users/paul/Library/Caches/pypoetry/virtualenvs/raisync-NwuNULVI-py3.9/lib/python3.9/site-packages/web3/_utils/method_formatters.py", line 569, in raise_solidity_error_on_revert
raise ContractLogicError(response['error']['message'])
web3.exceptions.ContractLogicError: execution reverted: ERC20: transfer amount exceeds allowance