mixbytes / hardhat-modify-storage-examples

Ethereum contracts storage modification examples for hardhat testing
MIT License
21 stars 2 forks source link

ethers.utils.zeroPad is undefined #1

Open dranastos opened 11 months ago

dranastos commented 11 months ago

Im getting an error at this line

const value = ethers.utils.hexlify(ethers.utils.zeroPad(signerAddress, 32))

I removed the utils in ethers.utils. hexlify and changed to ether.hexlify and that took care of that issue.

however, ethers.utils.zeroPad doesnt work nor does ethers.zeroPad

Whats the solution to this?

RealJohnnyTime commented 5 months ago

It's because a lot of things changed in ethers6.

Would be cool to update this repo to support ethers 6. :)