vechain / web3-gear

Proxy Thor's RESTful API to Eth JSON-RPC, to support Remix, Truffle and more.
MIT License
30 stars 17 forks source link

truffle migrate error #26

Closed marcomarasco closed 5 years ago

marcomarasco commented 5 years ago

Hi, i receive the following errors during truffle migrate

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
    result = await func(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
    return thor.get_filter_changes(filter_id)
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 164, in get_filter_changes
    return func()
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 188, in __call__
    for id in map(self.client.get_block_id, range(self.current, best_num + 1))
TypeError: unsupported operand type(s) for +: 'coroutine' and 'int'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
    result = await func(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
    return thor.get_filter_changes(filter_id)
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 164, in get_filter_changes
    return func()
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 188, in __call__
    for id in map(self.client.get_block_id, range(self.current, best_num + 1))
TypeError: unsupported operand type(s) for +: 'coroutine' and 'int'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
    result = await func(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
    return thor.get_filter_changes(filter_id)
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 164, in get_filter_changes
    return func()
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 188, in __call__
    for id in map(self.client.get_block_id, range(self.current, best_num + 1))
TypeError: unsupported operand type(s) for +: 'coroutine' and 'int'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
    result = await func(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
    return thor.get_filter_changes(filter_id)
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 164, in get_filter_changes
    return func()
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 188, in __call__
    for id in map(self.client.get_block_id, range(self.current, best_num + 1))
TypeError: unsupported operand type(s) for +: 'coroutine' and 'int'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
    result = await func(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
    return thor.get_filter_changes(filter_id)
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 164, in get_filter_changes
    return func()
  File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 188, in __call__
    for id in map(self.client.get_block_id, range(self.current, best_num + 1))
TypeError: unsupported operand type(s) for +: 'coroutine' and 'int'

Anyone can help?

uldaman commented 5 years ago

Please update to the latest version, it was fixed this bug.

marcomarasco commented 5 years ago

It works!