vechain / thor-devkit.js

Typescript library to aid dApp development on VeChainThor.
MIT License
38 stars 30 forks source link

Trim failed when using TrimmedBlobKind to encode all zero string #1

Closed libotony closed 6 years ago

libotony commented 6 years ago

The following test failed:

    it('trimmedBlobKind encode with all zero string', () => {
      const kind = new RLP.TrimmedBlobKind(4)
      expect(kind.encode('0x00000000', '').toString('hex')).equal('')
    })
libotony commented 6 years ago

fixed in e6231b4