FacetCut
struct in IDiamondWriteableInternal
doesn't follow the Spec naming conventions
#193
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The naming convention for the
FacetCut
struct does not follow the diamond spec, which uses a different naming conventionfacetAddress
andfunctionSelectors
:solidstate-solidity/contracts/proxy/diamond/writable/IDiamondWritableInternal.sol
Lines 23 to 28 in ae15a06
This could potentially break client compatibility across diamonds. E.G. when I was porting over an ethers
diamondCut
script from another project, there were type errors with the SS Diamond.This PR updates the codebase and tests to match the standard naming conventions.
I actually like the SS naming convention better, but it might be worth maintaining consistency with the standard.
EDIT: this also isn't a problem for everyone: I tested with louper, and their
diamondCut
still works with SS diamond despite using the spec naming convention, *because the ABI for the diamond they are referencing uses the same convention.https://github.com/mark3labs/louper-v2/blob/d326c9ba4c48724297a6b8f5dcc9915d148ed250/src/lib/components/AddFacet.svelte#L41-L47