# Error Occurred while changing compiler version

**URL:** <https://forum.openzeppelin.com/t/error-occurred-while-changing-compiler-version/9685>\
**Category:** General\
**Created:** [June 2, 2021, 5:01am UTC](https://forum.openzeppelin.com/t/error-occurred-while-changing-compiler-version/9685 "2021-06-02T05:01:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakash25](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/prakash25/32/6164_2.png) [@prakash25](https://forum.openzeppelin.com/u/prakash25)\
**Post date:** [June 2, 2021, 5:01am UTC](https://forum.openzeppelin.com/t/error-occurred-while-changing-compiler-version/9685/1 "2021-06-02T05:01:33Z")

</div>

Hi all,  
below is my contract with compiler version \>=0.6.0.

when I change the compiler version ^0.8.2 i am getting error as:

Return argument type address is not implicitly convertible to expected type (type of first return variable) address payable.

```auto
pragma solidity >=0.6.0;

abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }
    

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

```

can anyone help me to sort out this issue?

---

<div class="post-metadata">

**Author:** ![Yoshiko](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/yoshiko/32/6858_2.png) [@Yoshiko](https://forum.openzeppelin.com/u/Yoshiko)\
**Post date:** [June 2, 2021, 6:50am UTC](https://forum.openzeppelin.com/t/error-occurred-while-changing-compiler-version/9685/2 "2021-06-02T06:50:52Z")

</div>

Hi there,

When updating your compiler version, you should check to see if Open Zeppelin has created an updated version of the contract.

In this case, use the newest version of Context.sol at

> <https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol>

That should fix the issue.

---

<div class="post-metadata">

**Author:** ![prakash25](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/prakash25/32/6164_2.png) [@prakash25](https://forum.openzeppelin.com/u/prakash25)\
**Post date:** [June 2, 2021, 8:35am UTC](https://forum.openzeppelin.com/t/error-occurred-while-changing-compiler-version/9685/3 "2021-06-02T08:35:14Z")

</div>

Thanks for the response @Yoshiko,  
I have another doubt " Is proxy contract compiler version and Implementation contract compiler version should be same? "

can I use the below combination in Binance smart chain?  
proxy contract compiler version ^0.8.4 ,  
Implementation contract compiler version \>=0.6.12

---

<div class="post-metadata">

**Author:** ![frangio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/frangio/32/15251_2.png) [@frangio](https://forum.openzeppelin.com/u/frangio)\
**Post date:** [June 2, 2021, 10:49pm UTC](https://forum.openzeppelin.com/t/error-occurred-while-changing-compiler-version/9685/4 "2021-06-02T22:49:33Z")

</div>

Proxy and implementation contracts can be compiled with different Solidity versions
