Skip to content

Send To Sidechain fails #30

Description

@poppingtonic

I've followed all the steps in alpha-README.md, but fail to see the expected result in Step 6 of To Move Money into Elements Alpha.

$ ./contrib/sidechain-manipulation.py send-to-sidechain 2MuCWkMxPNLoV2qxCKXUSnmeZpz8VMtEzjz 1

Sending 1 to 2N82VPmsiZRC3xbDX9fxgiTKgkiY8BFjKZt...
(nonce: 4483e3dccfef99bc6e350a9665fc1ee5)

Traceback (most recent call last):
  File "./contrib/sidechain-manipulation.py", line 121, in <module>
    txid = bitcoin.sendtoaddress(send_address, Decimal(sys.argv[3]))
  File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 107, in __call__
    'id': self.__id_count})
  File "/usr/lib/python2.7/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python2.7/json/encoder.py", line 201, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python2.7/json/encoder.py", line 264, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python2.7/json/encoder.py", line 178, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: Decimal('1') is not JSON serializable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions