Verified contractPartial
Migrations
Address0xe7b727ff1948c1190206f1f400eb3ff4e4235b47
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.5.2
- Same code
412 more contracts
Details
- Compiler
- solc 0.5.2+commit.1df8f40c
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 8,510,818
- Creation transaction
- 0xb8a52942c3…ba6fc31d51
- Main copy (most transactions)
- 0x3e96b0a2…b839968f
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": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.