Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Throw an error when payable is used in contracts #20

Open
platocrat opened this issue Apr 6, 2021 · 0 comments
Open

Throw an error when payable is used in contracts #20

platocrat opened this issue Apr 6, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@platocrat
Copy link

Motivation

Viraz, in Optmism's discord server, asked, "what is the use "payable" in optimism?"
For developers, functions marked as payable will not work since msg.value is not yet implemented in the OVM.

Specification

OVM compiler should throw a warning to any contract functions marked as payable.

Backwards Compatibility

I see no issues with being backwards compatible.

@snario snario added the good first issue Good for newcomers label Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants