Verified contractPartial
Migrations
Address0xf8d4cff9cfe55ab1a821906ac428d0ad7b52dcdc
- Balance
0 ETH
- Transactions
29
- Compiler
solc 0.4.15
- Same code
1,026 more contracts
Details
- Compiler
- solc 0.4.15+commit.bbb8e64f
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 4,533,439
- Creation transaction
- 0xf28665b481…16c43ad21a
Migrations.sol
pragma solidity ^0.4.15;
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.