Check the escaped to address has code set

Document choice not to use a confirmation flow there as well.
This commit is contained in:
Luke Parker
2025-01-22 22:45:51 -05:00
parent c8f3a32fdf
commit 373e794d2c
2 changed files with 33 additions and 13 deletions

View File

@@ -34,11 +34,11 @@ interface IRouterWithoutCollisions {
* An `OutInstruction` is considered as having succeeded if the call transferring ETH doesn't
* fail, the ERC20 transfer doesn't fail, and any executed code doesn't revert.
*/
event Executed(uint256 indexed nonce, bytes32 indexed messageHash, bytes results);
event Batch(uint256 indexed nonce, bytes32 indexed messageHash, bytes results);
/// @notice Emitted when `escapeHatch` is invoked
/// @param escapeTo The address to escape to
event EscapeHatch(address indexed escapeTo);
event EscapeHatch(uint256 indexed nonce, address indexed escapeTo);
/// @notice Emitted when coins escape through the escape hatch
/// @param coin The coin which escaped
@@ -122,7 +122,10 @@ interface IRouter is IRouterWithoutCollisions {
}
/// @title The type of destination
/// @dev A destination is either an address or a blob of code to deploy and call
/**
* @dev A destination is either an ABI-encoded address or an ABI-encoded `CodeDestination`
* containing code to deploy (invoking its constructor).
*/
enum DestinationType {
Address,
Code