Registry
Explore community-led codemods to migrate, optimize, and transform your codebase.
Ready to contribute?
Build your own codemod and share it with the community.
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
Migrate Web3.js v1 legacy patterns to v4 modular syntax
npx codemod web3js-v4-evolution
This is one example from the codemod's test cases. The codemod may handle many more cases.
Build your own codemod and share it with the community.
1 const web3 = new Web3("http://localhost:8545");
2 const contract = new web3.eth.Contract(ABI, ADDRESS);
3 contract.methods.myMethod().send({ from: accounts[0] });
4