Merge pull request #12763 from kanedaaaa/develop

doc: improve explanation of interfaces
This commit is contained in:
chriseth 2022-03-10 08:45:21 +01:00 committed by GitHub
commit 356c83ad8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ Interfaces are similar to abstract contracts, but they cannot have any functions
There are further restrictions:
- They cannot inherit from other contracts, but they can inherit from other interfaces.
- All declared functions must be external.
- All declared functions must be external in the interface, even if they are public in the contract.
- They cannot declare a constructor.
- They cannot declare state variables.
- They cannot declare modifiers.