Back to Home

Payment Split (non-payable)

Part of The Vitalik Collection
0x9e53e16ae2d9...2d3f120f1060
Spurious DragonSource VerifiedEdit this contract
Deployed May 17, 2017 (9 years ago)Block 3,720,180

A non-payable sibling of the payment splitter: split(a, b) forwards msg.value/2 to each via .send, but it isn't payable so any send reverts.

Spurious Dragon EraVerified Source
Key Facts
Deployer
Vitalik Buterin(0x1db343...fa6ee6)
Deployment Block
3,720,180
Deployment Date
May 17, 2017, 05:57 AM
Code Size
268.0 B

Description

Deployed May 17, 2017 by Vitalik Buterin (0x1db3439a22ee7c4d034e9b26437d3960b5af0517). A payment splitter: split(address a, address b) forwards msg.value/2 to each of the two given addresses using .send (the return value is not checked, so a failed send does not revert). This version is NOT payable, so solc 0.4.11 inserts the non-payable value-rejection guard at function entry; a call carrying value reverts, meaning in practice the two sends transfer zero. Compiled with solc 0.4.11, optimizer on. The executable runtime reproduces byte-for-byte from the reconstructed source; only the trailing swarm metadata hash differs, since the original source's exact whitespace and identifiers are not recoverable from a metadata-only hash. runtime sha256 40bc4d80ebaf09fb38782f75b694680374ed20cf6e7e20993d6dbeebbf4697ec.

Source Verified

SolidityNear-exact bytecode match (swarm hash differs)
Compiler: v0.4.11

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 40bc4d80ebaf09fb38782f75b694680374ed20cf6e7e20993d6dbeebbf4697ec.

Bytecode Overview

Opcodes268
Unique Opcodes75
Jump Instructions7
Storage Operations0

External Links

Related contracts