It is time for Zeppelin Solidity - Remix integration

Currently, using OpenZeppelin solidity libraries is limited to local machines and deploying on tools like truffle. IMO Remix is the easiest place to deploy contracts. When I’m teaching solidity workshops I always use remix because it’s web based (no download) and beginners find truffle-config.js difficult to setup.

We should create a remix plugin for the solidity library that can grab OZ imported contracts from each file being compiled. Then add them to the batch being compiled.

1 Like

Hi @jschiarizzi,

I have gotten into using Remix more. What do you think should be in an OpenZeppelin Contracts Remix plugin?

Remix already supports importing via GitHub, and we can import a specific release version of a contract. See the following example:

1 Like

Using github to import the contracts is a good work around for this. i was imagining being able to use

import openzeppelin-solidity/contracts/etc..

the same way that I do when developing on desktop with truffle. I didn’t think of using github for the imports in remix though. I suppose it has the same result by doing that instead.

1 Like

Hi @jschiarizzi,

The main thing with importing using GitHub on Remix is to only import a specific release version, otherwise you get the latest version in Master.

For example, the following imports from OpenZeppelin Contracts 2.3

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.3.0/contracts/token/ERC20/ERC20.sol";
1 Like