nervosnetwork / polyjuice-provider

Godwoken-Polyjuice compatible providers for ethereum library
https://www.npmjs.com/org/polyjuice-provider
8 stars 14 forks source link

fix(deps): install cross-fetch & jsbi for lumos peerDeps #104

Closed RetricSu closed 2 years ago

RetricSu commented 2 years ago

since lumos/toolkit use peerDependencies for cross-fetch/jsbi, the version 0.1.4 of provider might throw the following error:

./node_modules/@ckb-lumos/toolkit/lib/rpc.js
Module not found: Can't resolve 'cross-fetch' in '/Users/retric/Desktop/release-workspace/polyjuice-provider-example/node_modules/@ckb-lumos/toolkit/lib'

this PR fix this by: