Contract Overview
Balance:
0 Ether
More Info
My Name Tag:
Not Available
Txn Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x0585e183e7cf714e3d5d53926b2201d0821bccc761368545320ba9073af86964 | 0x60806040 | 14108978 | 995 days 16 hrs ago | 0x1092a1e3a3f2fb2024830dd12064a4b33ff8ebae | IN | Create: Test | 0 Ether | 0.00012698 |
[ Download CSV Export ]
Contract Name:
Test
Compiler Version
v0.5.11+commit.c082d0b4
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-10-13 */ pragma solidity 0.5.11; contract Test { uint256 storageValue = 1234567890; function withReadingFromStorage() internal view returns (uint256) { uint256 gas = gasleft(); uint256 value = storageValue; uint256 newGas = gasleft(); return gas - newGas; } function withoutReadingFromStorage() internal view returns (uint256) { uint256 gas = gasleft(); uint256 value = 1; uint256 newGas = gasleft(); return gas - newGas; } function calculateGasUsage() external view returns (uint256, uint256) { return ( withReadingFromStorage(), withoutReadingFromStorage() ); } }
[{"constant":true,"inputs":[],"name":"calculateGasUsage","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405263499602d260005534801561001857600080fd5b5060c3806100276000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063acd76e4c14602d575b600080fd5b6033604c565b6040805192835260208301919091528051918290030190f35b60008060556063565b605b6079565b915091509091565b6000805a600080549192505a9092039250505090565b6000805a9050600160005a909203925050509056fea265627a7a7231582039c64f242bd24b8accedc8d2bc8e1f5bf0bd782c6dd2251de69e74c3e9d37b4d64736f6c634300050b0032
Deployed ByteCode Sourcemap
27:702:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27:702:0;;;;;;;;;;;;;;;;;;;538:188;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;590:7;599;641:24;:22;:24::i;:::-;680:27;:25;:27::i;:::-;619:99;;;;538:188;;:::o;94:214::-;151:7;171:11;185:9;205:13;221:12;;171:23;;-1:-1:-1;261:9:0;288:12;;;;-1:-1:-1;;;94:214:0;:::o;320:206::-;380:7;400:11;414:9;400:23;-1:-1:-1;450:1:0;434:13;479:9;506:12;;;;-1:-1:-1;;;320:206:0;:::o
Swarm Source
bzzr://39c64f242bd24b8accedc8d2bc8e1f5bf0bd782c6dd2251de69e74c3e9d37b4d
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.