Verified contractPartialMIT
Migrations
Address0x7e602cda82972dbed8714529c4e2f8be59fe7a02
- Balance
0 ETH
- Transactions
6
- Compiler
solc 0.5.16
- Same code
124 more contracts
Details
- Compiler
- solc 0.5.16+commit.9c3226ce
- Language
- solidity
- Optimization
- No
- EVM version
- istanbul
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 9,079,074
- Creation transaction
- 0x0cef10c0f9…7a31c059ac
- Main copy (most transactions)
- 0x4ce88ce3…0e9057d8
project:/contracts/Migrations.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.16;
contract Migrations {
address public owner;
uint256 public last_completed_migration;
modifier restricted() {
if (msg.sender == owner) _;
}
constructor() public {
owner = msg.sender;
}
function setCompleted(uint256 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
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "istanbul",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.