# Cannot get access to upgrade smart contract after deploy

**URL:** <https://forum.openzeppelin.com/t/cannot-get-access-to-upgrade-smart-contract-after-deploy/12398>\
**Category:** Upgrades\
**Created:** [July 13, 2021, 1:59pm UTC](https://forum.openzeppelin.com/t/cannot-get-access-to-upgrade-smart-contract-after-deploy/12398 "2021-07-13T13:59:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkrain](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/darkrain/32/7578_2.png) [@darkrain](https://forum.openzeppelin.com/u/darkrain)\
**Post date:** [July 13, 2021, 1:59pm UTC](https://forum.openzeppelin.com/t/cannot-get-access-to-upgrade-smart-contract-after-deploy/12398/1 "2021-07-13T13:59:14Z")

</div>

Hello. When i try to interact with contract after deploy with instance, all work correctly.

Example

```auto
const contract = await MyContract.deployed();
console.log(await contract.owner())

```

But if i try to interact like this:

```auto
  const contractAddress = "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9";
  const provider = new ethers.providers.JsonRpcProvider();
  const contract = new ethers.Contract(contractAddress, MyContractAbi, provider);
  console.log(await contract.owner())

```

then i get this error:

```auto
Error: call revert exception (method="owner()", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.3.1)
 {
  reason: null,
  code: 'CALL_EXCEPTION',
  method: 'owner()',
  errorArgs: null,
  errorName: null,
  errorSignature: null,
  address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9',
  args: [],
  transaction: {
    data: '0x8da5cb5b',
    to: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9',
    from: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
    gasLimit: BigNumber { _hex: '0xaf09a8', _isBigNumber: true }
  }
}

```

Why? What i do is wrong?

ABI i get from ./artifacts/contracts/MyContract.sol/MyContract.json

---

<div class="post-metadata">

**Author:** ![darkrain](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/darkrain/32/7578_2.png) [@darkrain](https://forum.openzeppelin.com/u/darkrain)\
**Post date:** [July 13, 2021, 4:04pm UTC](https://forum.openzeppelin.com/t/cannot-get-access-to-upgrade-smart-contract-after-deploy/12398/2 "2021-07-13T16:04:14Z")

</div>

in general, i slept, drank coffe and found that i deployed to network hardhat, but after that try to interact with localhost network.

Thanks coffe and my dreams! Guys, sleep more)
