ethereumjs / ethereumjs-tx

Project is in active development and has been moved to the EthereumJS VM monorepo.
https://github.com/ethereumjs/ethereumjs-vm/tree/master/packages/tx
Mozilla Public License 2.0
779 stars 235 forks source link

fix test runner #188

Closed ryanio closed 4 years ago

ryanio commented 4 years ago

Tests are currently broken here:

# RLPWrongAddress

(node:22784) UnhandledPromiseRejectionWarning: Error: Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: 0xf85f800182094894095v7baea6a6c7c4c2dfeb977efac326af552d870a801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804

The data is purposefully malformed, so I put the const rawTx = toBuffer(testData.rlp) in the try catch block so the error would catch properly.