Skip to content

Adds support for receive and fallback calls#6

Merged
gnarvaja merged 1 commit intomainfrom
add-support-for-receive-fallback
Feb 2, 2026
Merged

Adds support for receive and fallback calls#6
gnarvaja merged 1 commit intomainfrom
add-support-for-receive-fallback

Conversation

@gnarvaja
Copy link
Contributor

When msg.data.length == 0 (receive) it checks if receive are enabled in the AccessManager.

When msg.data.length between 1 and 3, it checks if fallback is enabled in AccessManager.

If enabled, it delegates to the implementation.

Uses bytes4(keccak256("receive")) and bytes4(keccak256("fallback")) as fake selectors for this special call.

When msg.data.length == 0 (receive) it checks if receive are enabled in
the AccessManager.

When msg.data.length between 1 and 3, it checks if fallback is enabled
in AccessManager.

If enabled, it delegates to the implementation.

Uses `bytes4(keccak256("receive"))` and `bytes4(keccak256("fallback"))`
as fake selectors for this special call.
@gnarvaja gnarvaja requested review from LucasCambon and gnpar January 29, 2026 15:15
@gnarvaja gnarvaja merged commit 66d8f56 into main Feb 2, 2026
2 of 4 checks passed
@gnarvaja gnarvaja deleted the add-support-for-receive-fallback branch February 2, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants