Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LSP0] Should the fallback function call into the owner? #109

Closed
frozeman opened this issue Aug 22, 2022 · 1 comment
Closed

[LSP0] Should the fallback function call into the owner? #109

frozeman opened this issue Aug 22, 2022 · 1 comment

Comments

@frozeman
Copy link
Member

As a discussion for later.
Should the fallback function call into the owner?

        function fallback()
        public
        {
            address to = owner();
            assembly {
                calldatacopy(0, 0, calldatasize())
                let result := staticcall(gas(), to, 0, calldatasize(), 0, 0)
                returndatacopy(0, 0, returndatasize())
                switch result
                case 0  { revert (0, returndatasize()) }
                default { return (0, returndatasize()) }
            }
        }
@frozeman
Copy link
Member Author

Better discussed here: ERC725Alliance/ERC725#35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant