and reduces bundle size by adding ethers as a peer dependency
js-sha512 is replaced with @noble/hashes (used by Ethers v6)
Both ethers & noble hashes are added as peer dependencies.
Some minor fixes around detecting the chain ID and whether it's ethers v6. If direct type comparisons are done (e.g. instanceof AbstractSigner and the ethers version isn't identical it will fail, so ended up using reflection to roughly determine if it's ethers v5 or ethers v6)
and reduces bundle size by adding ethers as a peer dependency
js-sha512 is replaced with
@noble/hashes
(used by Ethers v6)Both ethers & noble hashes are added as peer dependencies.
Some minor fixes around detecting the chain ID and whether it's ethers v6. If direct type comparisons are done (e.g.
instanceof AbstractSigner
and the ethers version isn't identical it will fail, so ended up using reflection to roughly determine if it's ethers v5 or ethers v6)