A four line contract that splits whatever you send it between two addresses
Historical Significance
The smaller half of a pair deployed minutes apart, where the only difference is one keyword and the first version cannot do the single thing it was written to do.
Context
Deployed in the Homestead era, months after Solidity 0.4 made functions non payable unless you say otherwise.
Key Facts
Description
Split takes two addresses and forwards half the ether sent with the call to each of them. That is the whole contract. It was deployed on 17 May 2017 by 0x1db3439a222c519ab44bb1144fc28167b4fa6ee6, the account of Vitalik Buterin, five and a half minutes after an identical contract that was missing the payable keyword and could therefore never receive the ether it existed to divide. This is the one that works.
Source Verified
Executable runtime reproduces byte-for-byte from the reconstructed source with solc 0.4.11, optimizer on; only the trailing swarm metadata hash differs. runtime sha256 0562931d3e50bc6ca55cb9192d4dc76b470aae1f333b4b4cdcaf238bfad84396.
Spurious Dragon Era
Continued DoS protection. State trie clearing.
Bytecode Overview
Verified Source Available
This contract has verified source code.
View Verification ProofShow source code (Solidity)
// Verified by EthereumHistory (ethereumhistory.com)
contract Split {
function split(address a, address b) payable {
a.send(msg.value / 2);
b.send(msg.value / 2);
}
}External Links
Related contracts
SerpentGamble
Same deployerProvably-fair betting game where players choose their own odds. The owner settles bets with a commit-reveal random seed. Includes a 2-day emergency refund.
0x034df8...200e2fSeptember 20, 2015SerpentGamble
Same deployerSibling of 0x034dF870 (SerpentGamble). Provably-fair Serpent betting game; players choose their own odds, owner settles via commit-reveal seed, 2-day refund.
0x9ca7e9...fa8bb4September 21, 2015SerpentGamble
Same deployerSibling of 0x034dF870 (SerpentGamble). Provably-fair Serpent betting game; players choose their own odds, owner settles via commit-reveal seed, 2-day refund.
0x75649a...176028September 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xe1a99f...0d2457September 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xdc00a9...15861fSeptember 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xd0ed09...300b48September 21, 2015