Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mudgen committed Sep 14, 2020
1 parent f2fd54b commit 26311bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/facets/DiamondCutFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract DiamondCutFacet is IDiamondCut {
uint256 facetAddressPosition = ds.facetFunctionSelectors[newFacetAddress].facetAddressPosition;
// add new facet address if it does not exist
if (facetAddressPosition == 0 && ds.facetFunctionSelectors[newFacetAddress].functionSelectors.length == 0) {
LibDiamondCut.hasContractCode(newFacetAddress, "LibDiamondCut: New facet has no code");
LibDiamondCut.hasContractCode(newFacetAddress, "DiamondCutFacet: New facet has no code");
facetAddressPosition = ds.facetAddresses.length;
ds.facetAddresses.push(newFacetAddress);
ds.facetFunctionSelectors[newFacetAddress].facetAddressPosition = uint16(facetAddressPosition);
Expand Down

0 comments on commit 26311bb

Please sign in to comment.