Verified contractPartial
Migrations
Address0xb4e69403753f5b8a437c47adfd97657bf09470d9
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.18
- Same code
556 more contracts
Details
- Compiler
- solc 0.4.18+commit.9cf6e910
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,167,939
- Creation transaction
- 0x121f943816…7c62837397
- Main copy (most transactions)
- 0x5fd87a8c…5cad0c1f
Migrations.sol
pragma solidity 0.4.18;
contract Migrations {
address public owner;
uint public last_completed_migration;
modifier restricted() {
if (msg.sender == owner) _;
}
function Migrations() public {
owner = msg.sender;
}
function setCompleted(uint completed) public restricted {
last_completed_migration = completed;
}
function upgrade(address new_address) public restricted {
Migrations upgraded = Migrations(new_address);
upgraded.setCompleted(last_completed_migration);
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.