Skip to content
Verified contractPartialMIT

Migrations

Address0x1fa69b2aaf5fa7860e97a5c01db09499ece9b2b8
Balance

0 ETH

 

Transactions

1

 

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,151,909
Creation transaction
0x7f15b6cff0…da7e898738
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.