Closed parin13 closed 4 years ago
Trying to connect to custom chain cause problem:
My code snippet:
const createRawTransaction = require('ethereumjs-tx').Transaction; const Common = require('ethereumjs-common'); const customCommon = await Common.forCustomChain( 'mainnet', { name: 'truffle', networkId: 5777 }, 'petersburg', ) const rawTx = new createRawTransaction(raw, {common: customCommon});
error:
TypeError: Common.forCustomChain is not a function
for Nodejs its const Common = require('ethereumjs-common').default;
const Common = require('ethereumjs-common').default;
Trying to connect to custom chain cause problem:
My code snippet:
error: