The storage example with an event fired before the write
Context
Deployed in September 2015 on the Frontier chain.
Key Facts
Description
The set and get pair from the Solidity documentation's opening example, with one addition: set emits a notify event carrying the new value before writing it to storage, so a client watching the log sees the change without polling. The ordering is deliberate enough to be visible in the bytecode, where the LOG1 precedes the SSTORE.
Source Verified
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
// Submitted by EthereumHistory (ethereumhistory.com)
contract SimpleStorage {
uint storedData;
event notify(uint value);
function set(uint x) {
notify(x);
storedData = x;
}
function get() constant returns (uint) {
return storedData;
}
}External Links
Related contracts
Contract 0x40d508...5d0b54
Same deployerThe SimpleStorage tutorial contract with a log event added to its setter.
0x40d508...5d0b54September 19, 2015Contract 0x98eec1...f139cf
Same deployerThe SimpleStorage tutorial contract with a log event added to its setter.
0x98eec1...f139cfSeptember 19, 2015Contract 0x7c4400...af80b7
Same deployerThe SimpleStorage tutorial contract with a log event added to its setter.
0x7c4400...af80b7September 19, 2015Contract 0xb9cdbd...f297a6
Same deployerThe SimpleStorage tutorial contract with a log event added to its setter.
0xb9cdbd...f297a6September 19, 2015SimpleStorage
Same deployerThe SimpleStorage tutorial contract with a log event added to its setter.
0x07d39c...918e8dSeptember 19, 2015Contract 0xd11d86...23d682
Same deployerThe SimpleStorage tutorial contract with a log event added to its setter.
0xd11d86...23d682September 19, 2015