Verified contractPartial
Migrations
Address0x58f7ff09cf581d8d8bf2c9a137da01491a184cec
- Balance
0 ETH
- Transactions
17
- Compiler
solc 0.4.21
- Same code
309 more contracts
Details
- Compiler
- solc 0.4.21+commit.dfe3193c
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,643,499
- Creation transaction
- 0x44ffcadcc9…4bf289574b
- Main copy (most transactions)
- 0xf1c730e8…efd18ef9
Migrations.sol
pragma solidity 0.4.21;
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": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.