CodeChain-io/codechain-primitives-js

Add toString() and toJSON() to H128, H160, H256, H512

joojis opened this issue · 3 comments

  • toString(): string
    The string is a hex string without 0x prefix.

  • toJSON(): string
    The string is a hex string with 0x prefix. CodeChain JSON-RPC server only accepts 0x prefixed hex string.

toJSON(): #40

toString() PR has been merged: #39

Landed.