Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

is version 2.0.0 no longer a constructor? #159

Closed
frankiebee opened this issue Jun 10, 2019 · 1 comment
Closed

is version 2.0.0 no longer a constructor? #159

frankiebee opened this issue Jun 10, 2019 · 1 comment

Comments

@frankiebee
Copy link

node -v
v8.15.1

im running old test that would pass with version: 1.3.7 and after updating to version 2.0.0 i get this error: TypeError: EthjsTx is not a constructor

code:

      const EthjsTx = require('ethereumjs-tx')

      const txParams = {
        to: '0x70ad465e0bab6504002ad58c744ed89c7da38524',
        from: '0x69ad465e0bab6504002ad58c744ed89c7da38525',
        value: '0x0',
        gas: '0x7b0c',
        gasPrice: '0x199c82cc00',
        data: '0x',
        nonce: '0x3',
        chainId: 42,
      }
      const ethTx = new EthjsTx(txParams)

maybe i'm doing something wrong here? or a breaking change i'm missing? will dig a little bit longer but thought i might just point this out for now

@frankiebee
Copy link
Author

lol just saw the major change woof sorry

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant