Verified contractPartial
Migrations
Address0xdb889b6dcc60f0e3fe20bba069e67cefcdd45ca6
- Balance
0 ETH
- Transactions
12
- Compiler
solc 0.5.4
- Same code
4 more contracts
Details
- Compiler
- solc 0.5.4+commit.9549d8ff
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,756,087
- Creation transaction
- 0x15fa849a9b…3758a920f3
Migrations.sol
pragma solidity 0.5.4;
contract Migrations {
address public owner;
uint public lastCompletedMigration;
constructor() public {
owner = msg.sender;
}
modifier restricted() {
if (msg.sender == owner) _;
}
function setCompleted(uint completed) public restricted {
lastCompletedMigration = completed;
}
function upgrade(address newAddress) public restricted {
Migrations upgraded = Migrations(newAddress);
upgraded.setCompleted(lastCompletedMigration);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.