UsingDiamondOrProxy

UsingDiamondOrProxy

This contracts provides modifiers to protect access to the diamond or the proxy only. It requires the DiamondOrProxyFacet to be deployed.

onlyExecuteInDiamond

modifier onlyExecuteInDiamond()

Ensures that the current contract execution context is the diamond, not a proxy. When used, make sure this is the first modifier applied. That way no access control is performed which would be unnecessary.

onlyExecuteInProxy

modifier onlyExecuteInProxy()

Ensures that the current contract execution context is a proxy, not the diamond. When used, make sure this is the first modifier applied. That way no access control is performed which would be unnecessary.

UsingDiamondOrProxy

This contracts provides modifiers to protect access to the diamond or the proxy only. It requires the DiamondOrProxyFacet to be deployed.

onlyExecuteInDiamond

modifier onlyExecuteInDiamond()

Ensures that the current contract execution context is the diamond, not a proxy. When used, make sure this is the first modifier applied. That way no access control is performed which would be unnecessary.

onlyExecuteInProxy

modifier onlyExecuteInProxy()

Ensures that the current contract execution context is a proxy, not the diamond. When used, make sure this is the first modifier applied. That way no access control is performed which would be unnecessary.

Was this helpful?