nova
nova copied to clipboard
🔒 Switch away from abi.encodePacked
Is there an easy way to use abi.encode with ethers? iirc solidityKeccack256 uses packed encoding
https://docs.ethers.io/v5/api/utils/abi/coder/#AbiCoder-encode
https://docs.ethers.io/v5/api/utils/hashing/#utils-keccak256
is encodePacked cheaper doe?
is encodePacked cheaper doe?
yes. by 200 gas