Closed jmrossy closed 4 years ago
Made some changes to the contract kit such that addresses for gold token and stable tokens and etc, can be accessed without having to get the contracts from web3 just for that purpose. Notification services use those addresses, and without those changes notification service would need to dip into the mobile package (where web3 resides currently) to use the addresses in notification services.
Facing the following issue in trying to test by deploying:
Couldn't get npm to install @celo/contractkit
from git+https://github.com/sallyjyl/contractKit-test.git
due tono such file or directory, chmod '/Users/sally/celo/celo-monorepo/packages/notification-service/node_modules/@celo/contractkit/bin/build-sdk.js
.
The error is reproduceable by running: npm install or npm install git+https://github.com/sallyjyl/contractKit-test.git
Work branch: sallyjyl/notif-contract-kit
Here are some of the things I've tried:
npm install "git+https://github.com/sallyjyl/contractKit-test.git”
fails with the same missing build-sdk.js error.npm install —no-bin-links
- doesn’t work (error in postinstall about missing bin/build-sdk.js). So tried removing postinstall in contractKit-test/package.json` => creates node_modules/@celo/contract-kit/, but missing bin/build-sdk.js..npmignore
-> no diffnpm cache clear
-> no diffnpm deploy -n integration
or yarn deploy -n integration
both do not work.Observations:
package/contractkit
Because it's always returning the same error about build-sdk.js
, not sure where the bug is coming from.
Expected Behavior
Current Behavior
Addresses are specified statically in the env configs