Verified contractPartial
Migrations
Address0x016dffb35cf40f8723417e5aa2c0bd7adb8a9a62
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.4.21
- Same code
100 more contracts
Details
- Compiler
- solc 0.4.21+commit.dfe3193c
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,776,486
- Creation transaction
- 0xa961d67e56…cd04d1a8f8
- Main copy (most transactions)
- 0xe28cd88d…f9be31ae
Migrations.sol
pragma solidity ^0.4.4;
// File: contracts/Migrations.sol
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) restricted public {
last_completed_migration = completed;
}
function upgrade(address new_address) restricted public {
Migrations upgraded = Migrations(new_address);
upgraded.setCompleted(last_completed_migration);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.