# OZ Create Error

**URL:** <https://forum.openzeppelin.com/t/oz-create-error/2966>\
**Category:** SDK\
**Created:** [May 29, 2020, 5:00am UTC](https://forum.openzeppelin.com/t/oz-create-error/2966 "2020-05-29T05:00:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steeve](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/steeve/32/3627_2.png) [@Steeve](https://forum.openzeppelin.com/u/Steeve)\
**Post date:** [May 29, 2020, 5:00am UTC](https://forum.openzeppelin.com/t/oz-create-error/2966/1 "2020-05-29T05:00:29Z")

</div>

I set up a simple storage contract; but get error with OZ create (I use instead of truffle since Im using GSN)

```auto
> Artifacts written to /build/contracts
> Compiled successfully using:
   - solc: 0.6.8+commit.0bbfe453.Emscripten.clang

Truffle output:
 - Fetching solc version list from solc-bin. Attempt #1
- Fetching solc version list from solc-bin. Attempt #1

? Pick a contract to instantiate SimpleStorage
? Pick a network develop
All contracts are up to date
✖ Creating instance for contract at 0xD833215cBcc3f914bD1C9ece3EE7BF8B14f841bb
Returned error: VM Exception while processing transaction: revert Cannot set a proxy implementation to a non-contract address

```

my package.json:

```auto
"dependencies": {
    "@openzeppelin/cli": "^2.8.2",
    "@openzeppelin/contracts": "^3.0.1",
    "@openzeppelin/gsn-helpers": "^0.2.3",
    "@openzeppelin/gsn-provider": "^0.1.10",
    "core-js": "^3.6.4",
    "vue": "^2.6.11",
    "web3": "^1.2.2"
  },

```

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [May 29, 2020, 6:49am UTC](https://forum.openzeppelin.com/t/oz-create-error/2966/2 "2020-05-29T06:49:55Z")

</div>

Hi @steeve,

In case you weren’t aware, there are two versions of the GSN:

- **GSNv1** : Use in production now (though you may want to run your own relayer on mainnet to ensure availability).
- **GSNv2** : In development at [OpenGSN.org](https://opengsn.org/). See [Doubling down on security](https://forum.openzeppelin.com/t/doubling-down-on-security/2712) for more details.

Assuming you are just getting started and depending on your development roadmap, you could look at the upcoming improvements in GSNv2. I suggest joining the [OpenGSN telegram](https://t.me/joinchat/F_BETUjG0Crb2s6mFx1LWA) to get the latest news on GSNv2 development and timescales.

Please ask all the questions that you need. For questions on GSNv2 you can ask in the [OpenGSN telegram](https://t.me/joinchat/F_BETUjG0Crb2s6mFx1LWA).

* * *

You can use Truffle with the GSN.

With the OpenZeppelin CLI, `oz create` is deprecated and you should use `oz deploy`.

Are you able to share your contract?

---

<div class="post-metadata">

**Author:** ![Steeve](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/steeve/32/3627_2.png) [@Steeve](https://forum.openzeppelin.com/u/Steeve)\
**Post date:** [May 29, 2020, 10:20am UTC](https://forum.openzeppelin.com/t/oz-create-error/2966/3 "2020-05-29T10:20:05Z")

</div>

BTW I’m still using GSN1

My contract:

```auto
pragma solidity ^0.6.0;

import "@openzeppelin/contracts/GSN/GSNRecipient.sol";
import "@openzeppelin/upgrades/contracts/Initializable.sol";

contract SimpleStorage is Initializable, GSNRecipient {
  event NewData(uint Update);

  uint storedData;
  address private _owner;

  function initialize(uint num) public initializer {
    _owner = _msgSender();
  }

  function set(uint x) public {
   storedData = x;
   emit NewData(x);
  }

  function get() public view returns (uint) {
    return storedData;
  }

  function acceptRelayedCall(
   address relay,
   address from,
   bytes calldata encodedFunction,
   uint256 transactionFee,
   uint256 gasPrice,
   uint256 gasLimit,
   uint256 nonce,
   bytes calldata approvalData,
   uint256 maxPossibleCharge
   ) external view override returns (uint256, bytes memory){
   return _approveRelayedCall();
  }

  function _preRelayedCall(bytes memory context) internal override returns (bytes32) {
  }

  function _postRelayedCall(bytes memory context, bool, uint256 actualCharge, bytes32) internal override {
  }

}

```

---

<div class="post-metadata">

**Author:** ![Steeve](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/steeve/32/3627_2.png) [@Steeve](https://forum.openzeppelin.com/u/Steeve)\
**Post date:** [May 29, 2020, 11:11pm UTC](https://forum.openzeppelin.com/t/oz-create-error/2966/4 "2020-05-29T23:11:40Z")

</div>

OZ deploy doesn’t work with my OZ version 2.6.0 which I realize is the version I have installed globally for a while now…

EDIT : So I used `npx oz deploy` to use my local dev dependencies instead of the global OZ.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [June 2, 2020, 3:14am UTC](https://forum.openzeppelin.com/t/oz-create-error/2966/5 "2020-06-02T03:14:24Z")

</div>

Hi @Steeve,

Glad you were able to resolve.

I mostly use local installs these days as it is easy to forget to upgrade global installs.

It is worth running a check every once in a while to see what you have installed globally:

```auto
$ npm -g ls --depth=0
/home/abcoathup/.nvm/versions/node/v10.19.0/lib
├── asciicast2gif@0.2.1
├── ganache-cli@6.9.1
├── npm@6.14.5
└── yarn@1.22.4

```
