@renproject/gateway imports old darknode-sol contracts
Closed this issue · 1 comments
I tried doing the tutorial on the website but I kept getting this error message.
./node_modules/@renproject/contracts/dist/src/networks/devnet.js Cannot find file: 'RenBCH.json' does not match the corresponding name on disk: './node_modules/darknode-sol/build/devnet/renBCH.json'.
I tried cloning your repo for the tutorial but faced the same error. Tried doing a clean install with create-react-app, npm install @renproject/gateway
and just importing the package in a file would throw the same error.
It seems like the library depends on an old version of https://github.com/renproject/darknode-sol/ and 3 contracts are downcased when they should be uppercased.
- renZEC.json
- renBCH.json
- renBTC.json
Uppercasing them fixed the issue for me.
Thanks for reporting - this was fixed a few versions ago but the issue didn't get updated.
The issue was caused when the files got overwritten on case-insensitive file-systems (which is the default on MacOS).