Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue asset address #14

Open
benjiqq opened this issue Nov 29, 2015 · 0 comments
Open

Issue asset address #14

benjiqq opened this issue Nov 29, 2015 · 0 comments

Comments

@benjiqq
Copy link

benjiqq commented Nov 29, 2015

Something wrong I think with base58 encoding. currently investigating...

python3 colorcore.py issueasset 1LBKEjcZoPyhkm9hUb7XyM3ez3opNzXuXX 10000
Traceback (most recent call last):
  File "colorcore.py", line 35, in <module>
    colorcore.routing.Program.execute()
  File "/home/benjyz/lykke/colorcore/colorcore/routing.py", line 64, in execute
    router.parse(sys.argv[1:])
  File "/home/benjyz/lykke/colorcore/colorcore/routing.py", line 337, in parse
    func(**args)
  File "/home/benjyz/lykke/colorcore/colorcore/routing.py", line 254, in decorator
    self.event_loop.run_until_complete(coroutine_wrapper())
  File "/usr/lib/python3.4/asyncio/base_events.py", line 316, in run_until_complete
    return future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 275, in result
    raise self._exception
  File "/usr/lib/python3.4/asyncio/tasks.py", line 238, in _step
    result = next(coro)
  File "/home/benjyz/lykke/colorcore/colorcore/routing.py", line 239, in coroutine_wrapper
    result = yield from function(controller, *args, **kwargs)
  File "/home/benjyz/lykke/colorcore/colorcore/operations.py", line 195, in issueasset
    to_address = self._as_any_address(from_address)
  File "/home/benjyz/lykke/colorcore/colorcore/operations.py", line 287, in _as_any_address
    result = colorcore.addresses.Base58Address.from_string(address)
  File "/home/benjyz/lykke/colorcore/colorcore/addresses.py", line 67, in from_string
    decoded_bytes = bitcoin.base58.decode(base58)
  File "/usr/local/lib/python3.4/dist-packages/bitcoin/base58.py", line 75, in decode
    if c not in b58_digits:
TypeError: 'in <string>' requires string as left operand, not int
@benjiqq benjiqq changed the title Issue asset Issue asset address Nov 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant