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
Right now we can import and compute the hash of a contract artifact with unsorted output functions. We need to make sure these are deterministic before hashing it otherwise we end up with an artifact with different hashes but the same input.
This PR enables us to enforce deterministic contract artifact JSON
stringifying. This is because now when we generate our contract
artifact, we pass it through our zod parser, which enforces ordering in
the object, and enforces correct ordering of props in objects. This is
related to #6021, which we need for deterministic artifact hashes.
Right now we can import and compute the hash of a contract artifact with unsorted output functions. We need to make sure these are deterministic before hashing it otherwise we end up with an artifact with different hashes but the same input.
Search TODO: #6021
Related to #5875.
The text was updated successfully, but these errors were encountered: