smartcontractkit / LinkToken

LINK Token Contracts for the Chainlink Network

Home Page:https://chain.link

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error not compatible with @openzeppelin/contracts v4

sekoyo opened this issue · comments

Hi,

I use @openzeppelin/contracts (4.3.3) in my own contract which depend on solidity ^0.8.0.

Meanwhile this contract has a dependency on it too, but doesn't list it as a dep in package.json so it uses my project's version. It seems since 1.1.0 of this codebase you are using a vendor folder perhaps to mitigate this issue?

In the mean time would you advise maybe that I:
a) Change @openzeppelin/contracts to whatever older version used solidity 0.6
b) Install 1.2.0-alpha from GitHub (is it stable enough?). EDIT: Looks like this way isn't possible since openzep contracts are install as a git submodule

Thanks

I fixed this by forking 1.1.0 and using a local copy of openzeppelin 3.4.0 (had issues with node_modules one being picked up):

"@chainlink/token": "git+https://github.com/DominicTobias/LinkToken.git#1.1.0-fixed",