Verified contractPartial
Migrations
Address0x7fd48e7ecbab14e83b1f302b0fdb6e2a116c2033
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.5.0
- Same code
67 more contracts
Details
- Compiler
- solc 0.5.0+commit.1d4f565a
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 8,460,664
- Creation transaction
- 0x1792b4ee45…bf824f3c6b
- Main copy (most transactions)
- 0x42a9bbb1…c6b1c77c
Migrations.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
// File: contracts/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": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.