Verified contractPartial
Migrations
Address0x3fa603b6c8e6afe191ec262fb7e499ce07c73b9f
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.5.1
- Same code
33 more contracts
Details
- Compiler
- solc 0.5.1+commit.c8a2cb62
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,008,765
- Creation transaction
- 0x503c77a405…6db89fd5dc
- Main copy (most transactions)
- 0x338c79dc…bb56f370
Migrations.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.5.0;
contract Migrations {
address public owner;
uint public last_completed_migration;
modifier restricted() {
if (msg.sender == owner) _;
}
constructor() 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
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.