In my web3 project, I am using "ethers": '^5.4.7'
but I need to integrate @orionprotocol/sdk node module into my project.
the problem is that this module requires "ethers": '^6.7.0'
I thought that I could do it by upgrading ethers to version 6....
const tokenFrom = from === ethers.constants.AddressZero ? nativeToken : from;
const tokenTo = to === ethers.constants.AddressZero ? nativeToken : to;
// above code does not work in ethers v6, because there is no scope named "ethers.constants" and so on...
...
However, original code that I wrote in ethers v5 not work anymore.
Of course, I can upgrade all of original codes to new version of ethers, but I think it is not exactly a right solution for me.
You can either: