Flags
uint256 public constant UNWRAP_ETH;
Flag to unwrap ETH
uint256 public constant REVERT_IF_EXTERNAL_FAIL;
Flag to revert if external call fails
uint256 public constant PROXY_WITH_SENDER;
Flag to call proxy with a sender contract
uint256 public constant SEND_HASHED_DATA;
Data is hash in DeBridgeGate send method
function getFlag(
uint256 _packedFlags,
uint256 _flag
) internal returns (bool)
Get flag
Name | Type | Description |
---|---|---|
_packedFlags | uint256 | Flags packed to uint256 |
_flag | uint256 | Flag to check |
function setFlag(
uint256 _packedFlags,
uint256 _flag,
bool _value
) internal returns (uint256)
Set flag
Name | Type | Description |
---|---|---|
_packedFlags | uint256 | Flags packed to uint256 |
_flag | uint256 | Flag to set |
_value | bool | Is set or not set |
Last modified 1yr ago