Verified contractPartial
Migrations
Address0x31348bc2f6a855974c8461cdb6d522b7d365afa5
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.4.26
- Same code
1,390 more contracts
Details
- Compiler
- solc 0.4.26+commit.4563c3fc
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,226,276
- Creation transaction
- 0xf65a65227a…9c6735fb51
- Main copy (most transactions)
- 0xfaaa8474…c1afe13d
Migrations.sol
pragma solidity ^0.4.23;
// @dev Generated and used by the Truffle framework
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 newAddress) public restricted {
Migrations upgraded = Migrations(newAddress);
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.