Verified contractPartial
Migrations
Address0x9df9ef84232da1a853446763a709fac255cd40af
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.23
- Same code
273 more contracts
Details
- Compiler
- solc 0.4.23+commit.124ca40d
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,847,539
- Creation transaction
- 0x01de2cf3b0…1cc432395b
- Main copy (most transactions)
- 0x13c0bf3d…cf1151d6
Migrations.sol
pragma solidity 0.4.23;
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
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.