Verified contractPartial
Migrations
Address0x95b248287ccfa8d6f8239f647aa9ea0b60107e56
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.5.5
- Same code
283 more contracts
Details
- Compiler
- solc 0.5.5+commit.47a71e8f
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 9,072,928
- Creation transaction
- 0x4bdcf5dad8…adcfa8fe28
- Main copy (most transactions)
- 0x0954c2c5…dedbe984
Migrations.sol
pragma solidity >=0.4.21 <0.6.0;
contract Migrations {
address public owner;
uint public last_completed_migration;
constructor() public {
owner = msg.sender;
}
modifier restricted() {
if (msg.sender == owner) _;
}
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
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.