This commit is contained in:
Kamil Śliwak 2023-10-02 13:12:00 -06:00 committed by GitHub
commit 10ebe7ee89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 12 deletions

View File

@ -15,7 +15,7 @@ arguments to be stored in the transaction's log - a special data structure
in the blockchain. These logs are associated with the address of the contract that emitted them, in the blockchain. These logs are associated with the address of the contract that emitted them,
are incorporated into the blockchain, and stay there as long as a block is are incorporated into the blockchain, and stay there as long as a block is
accessible (forever as of now, but this might accessible (forever as of now, but this might
change with Serenity). The Log and its event data is not accessible from within change in the future). The Log and its event data is not accessible from within
contracts (not even from the contract that created them). contracts (not even from the contract that created them).
It is possible to request a Merkle proof for logs, so if It is possible to request a Merkle proof for logs, so if

View File

@ -590,9 +590,11 @@ One area where inheritance linearization is especially important and perhaps not
Inheriting Different Kinds of Members of the Same Name Inheriting Different Kinds of Members of the Same Name
====================================================== ======================================================
It is an error when any of the following pairs in a contract have the same name due to inheritance: The only situations where, due to inheritance, a contract may contain multiple definitions sharing
- a function and a modifier the same name are:
- a function and an event
- an event and a modifier
As an exception, a state variable getter can override an external function. - Overloading of functions.
- Overriding of virtual functions.
- Overriding of external virtual functions by state variable getters.
- Overriding of virtual modifiers.
- Overloading of events.

View File

@ -233,7 +233,7 @@ Yes:
bytes32[] options bytes32[] options
); );
LongAndLotsOfArgs( emit LongAndLotsOfArgs(
sender, sender,
recipient, recipient,
publicKey, publicKey,
@ -251,7 +251,7 @@ No:
uint256 amount, uint256 amount,
bytes32[] options); bytes32[] options);
LongAndLotsOfArgs(sender, emit LongAndLotsOfArgs(sender,
recipient, recipient,
publicKey, publicKey,
amount, amount,
@ -1045,13 +1045,15 @@ No:
Order of Layout Order of Layout
*************** ***************
Layout contract elements in the following order: Contract elements should be laid out in the following order:
1. Pragma statements 1. Pragma statements
2. Import statements 2. Import statements
3. Interfaces 3. Events
4. Libraries 4. Errors
5. Contracts 5. Interfaces
6. Libraries
7. Contracts
Inside each contract, library or interface, use the following order: Inside each contract, library or interface, use the following order: