I just tried out in both equally v4 and v5, As well as in both equally versions the code you furnished functions fine (they match). Are you able to give an example with an ethers.Wallet instance and private important and incorporate the output you will get so I can reproduce https://jonathanq516qom0.answerblogs.com/27011086/manual-article-review-is-required-for-this-article