Open mayorityz opened 3 months ago
We changed default exports to named exports which is started from TronWeb v6. Please use
import { TronWeb } from 'tronweb';
Know more differences from here
We changed default exports to named exports which is started from TronWeb v6. Please use
import { TronWeb } from 'tronweb';
Know more differences from here
Wow. It's a largely commonjs project, which means refactoring all the code to fit.
Is it possible to downgrade the package?
If you don't have enough time to refactor your code. You can use TronWeb@v5.3.2
by using following command:
npm install tronweb@latest
If you don't have enough time to refactor your code. You can use
TronWeb@v5.3.2
by using following command:npm install tronweb@latest
As TronWeb v6.0.0 has published, you need to using npm install tronweb@5.3.2
.
Hello,
Everytime i try to create a wallet, i get the error, "TronWeb is not a constructor". The tron version is "tronweb": "^6.0.0-beta.3".
` const TronWeb = require('tronweb')
const privateKey = crypto.randomBytes(32).toString('hex')
`