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

interface ISafe {
function setFallbackHandler(address handler) external;
}

contract Example {
function example() ... {
(ISafe safe).setFallbackHandler(0x...);
}
}

Parameters

handler

  • Type: address

Contract to handle fallback calls.

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

Events

ChangedFallbackHandler

event ChangedFallbackHandler(address handler);

Emitted when the Fallback Handler is changed.

Last updated on

Was this page helpful?

We use cookies to provide you with the best experience and to help improve our website and application. Please read our Cookie Policy for more information. By clicking "Accept all", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and provide customer support.