Fail on defined functions in contract prototypes #654
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "fail-on-multiple-contracts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: UlfNorell
Previously the AEVM backend silently accepted defined functions in contract prototypes, but did the wrong thing, and the FATE backend crashed in code generation.
We could in principle allow defined functions in contract prototypes, but disallowing them makes it clear that no code is generated for the prototypes.
Also gives a type error if you try to call a function in another contract as if the contract were a namespace (i.e.
RemoteContract.some_fun(...)
). Previously this crashed during code generation.Created by: happi
Review: Approved
Created by: hanssv
Review: Approved
Merged by: UlfNorell at 2019-10-01 12:28:06 UTC