Skip to content
Verified contractPartialMIT

Incompatable

Address0x2e6987e0a052e205b3ca978a7c40a73a1d9984cc
Balance

0 ETH

 

Transactions

2

 

Compiler

solc 0.8.19

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.19+commit.7dd6d404
Language
solidity
Optimization
Yes, 200 runs
EVM version
paris
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
20,883,804
Creation transaction
0x458673e9e8…059523d57e

Incompatable.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8;

interface IICompatatable {
    function callChangeStorage(
        uint256 _newNumber
    )
        external;

    function latestAnswer()
        external 
        view
        returns (uint256); 
}

contract Incompatable {

    uint256 public latestAnswer = 3;

    function callChangeStorage(
        uint256 _newNumber
    )
        external 
    {
        latestAnswer = _newNumber;
    }

    function callExternalWrite(
        address _externalContract,
        uint256 _newNumber
    )
        external 
    {
        IICompatatable(_externalContract).callChangeStorage(
            _newNumber
        );
    }

    function callExternalView(
        address _externalContract
    )
        external 
        view 
        returns (uint256)
    {
        return IICompatatable(_externalContract).latestAnswer();
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "paris",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.