ODCutils
DiamondFallbackWithAccessControl
Original: https://github.com/solidstate-network/solidstate-solidity/blob/v0.0.59/contracts/proxy/diamond/fallback/DiamondFallback.sol Modified to use AccessControl instead of Ownable
getFallbackAddress
query the address of the fallback implementation
Return Values
Name | Type | Description |
---|---|---|
fallbackAddress | address | address of fallback implementation |
setFallbackAddress
set the address of the fallback implementation
Parameters
Name | Type | Description |
---|---|---|
fallbackAddress | address | address of fallback implementation |
_getImplementation
get logic implementation address
query custom fallback address if implementation is not found
Return Values
Name | Type | Description |
---|---|---|
implementation | address | implementation address |
_getFallbackAddress
query the address of the fallback implementation
Return Values
Name | Type | Description |
---|---|---|
[0] | address | Address of fallback implementation |
_setFallbackAddress
set the address of the fallback implementation
Parameters
Name | Type | Description |
---|---|---|
fallbackAddress | address | address of fallback implementation |