GolosChain / golos-python

Official Python Library for Golos Blockchain
MIT License
3 stars 4 forks source link

Steem keys= kwarg not working #5

Closed bitphage closed 7 years ago

bitphage commented 7 years ago

Passing keys= is not working

s = Steem(nodes=nodes, keys=keys)

Due to wrong self.prefix in steem/wallet.py, key builder in wallet.py makes public keys with STM prefix, so we're always getting steembase.exceptions.MissingKeyError exception.

  File "./make_post_t.py", line 29, in <module>
    main()
  File "./make_post_t.py", line 25, in main
    golos.commit.post(title, body, args.account, tags=tags)
  File "/home/vvk/devel/golos/scripts/venv/lib/python3.6/site-packages/steem/commit.py", line 325, in post
    return self.finalizeOp(ops, author, "posting")
  File "/home/vvk/devel/golos/scripts/venv/lib/python3.6/site-packages/steem/commit.py", line 126, in finalizeOp
    tx.sign()
  File "/home/vvk/devel/golos/scripts/venv/lib/python3.6/site-packages/steem/transactionbuilder.py", line 110, in sign
    raise MissingKeyError
steembase.exceptions.MissingKeyError