lukso-network / LIPs

LUKSO Improvement Proposals. Repository for the LUKSO Blockchain Improvement Proposals (LIPs) and LUKSO Standards Process (LSP).
99 stars 44 forks source link

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

Closed frozeman closed 2 years ago

frozeman commented 2 years ago

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 commented 2 years ago

Better discussed here: https://github.com/ERC725Alliance/ERC725/issues/35