Verified contractPartial
Migrations
Address0xbbdc8abf050bfad3c22dd4b49ff98b275030b134
- Balance
0 ETH
- Transactions
9
- Compiler
solc 0.4.24
- Same code
571 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,866,184
- Creation transaction
- 0xd23eb191b2…aef990dfed
- Main copy (most transactions)
- 0x78743ebc…a2e402de
Migrations.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity 0.4.24;
// File: contracts/Migrations.sol
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.