Smart Account Reference
Fallback Handler
setFallbackHandler

setFallbackHandler

Set Fallback Handler to handler for the Safe.

⚠️

Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction. Cannot be set to the Safe itself.

Usage


_10
interface ISafe {
_10
function setFallbackHandler(address handler) external;
_10
}
_10
_10
contract Example {
_10
function example() ... {
_10
(ISafe safe).setFallbackHandler(0x...);
_10
}
_10
}

Parameters

handler

  • Type: address

Contract to handle fallback calls.


_10
(ISafe safe).setFallbackHandler(
_10
0x...
_10
);

Events

ChangedFallbackHandler


_10
event ChangedFallbackHandler(address handler);

Emitted when the Fallback Handler is changed.

Was this page helpful?