You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the normal mode of operation a Merkle proof is passed into a contract by a external party. As such there is little benefit to copying the Merkle proof to memory before invoking _efficientHash. Therefore gas may be saved if in this case calldata is used instead of memory for the proof variable. Recommend either modifying the contract or offering a variant that utilizes calldata.
The text was updated successfully, but these errors were encountered:
Looks like the original contract was written before 0.6.9 which allowed for using calldata within internal function calls. Most likely why memory is still being used in it's current iteration.
openzeppelin-contracts/contracts/utils/cryptography/MerkleProof.sol
Line 28 in eae2384
In the normal mode of operation a Merkle proof is passed into a contract by a external party. As such there is little benefit to copying the Merkle proof to memory before invoking
_efficientHash
. Therefore gas may be saved if in this case calldata is used instead of memory for the proof variable. Recommend either modifying the contract or offering a variant that utilizes calldata.The text was updated successfully, but these errors were encountered: