Skip to content

Commit

Permalink
package fixes and update the broken unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-enya committed Aug 29, 2024
1 parent c1417c8 commit d786941
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"@walletconnect/ethereum-provider": "<rootDir>/__mocks__/@walletconnect/ethereum-provider.ts",
"^axios$": "axios/dist/node/axios.cjs"
},
"transformIgnorePatterns": ["/node_modules/(?!@bobanetwork/graphql-utils).+\\.js$"],
"collectCoverageFrom": [
"src/components/**/*.tsx",
"src/containers/**/*.tsx",
Expand Down
1 change: 0 additions & 1 deletion src/containers/modals/tokenPicker/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const bridgeConfig = {
getBalance: ({ l1Balance, l2Balance, layer, getBridgeableTokens }) => {
const balances = layer === 'L2' ? l2Balance : l1Balance
return getBridgeableTokens(balances).then((supportedTokens) => {
console.log(`supportedTokens`, supportedTokens, balances)
return balances.filter((balance) => {
return supportedTokens
.map((b) => b.token)
Expand Down
17 changes: 12 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1207,15 +1207,17 @@
"@ethersproject/abstract-signer" "^5.5.0"
"@ethersproject/hardware-wallets" "^5.5.0"

"@bobanetwork/graphql-utils@^1.1.15":
version "1.1.15"
resolved "https://registry.yarnpkg.com/@bobanetwork/graphql-utils/-/graphql-utils-1.1.15.tgz#6b23b80c00946583fc40c455697c94f0a14da8d6"
integrity sha512-y2NavcPnCQSiTzgqFf/YEcotQ5B6O/5CCoemZrjRKtkJZKWwg3xIbb2ELy3bM5WWdHXd67z5KNhfpPN9Tp4tpw==
"@bobanetwork/graphql-utils@^1.1.16":
version "1.1.16"
resolved "https://registry.yarnpkg.com/@bobanetwork/graphql-utils/-/graphql-utils-1.1.16.tgz#df93b658874905b21d8370b31355ef92ebaffdf9"
integrity sha512-jJA1JA2cf0iHI6qulZD65KpVuPo+rGCnxzSc+rfEaRLgjOr7TuIdqv/aYy5Lr/p2g+m1Gx0lAHWZQ5148HzvPw==
dependencies:
"@apollo/client" "3.5.10"
"@ethersproject/providers" "^5.7.2"
"@types/jest" "^29.5.12"
dotenv "^16.4.5"
ethers "^5.5.4"
graphql "^16.8.2"
node-fetch "^2.6.1"
ts-jest "^29.1.2"

Expand Down Expand Up @@ -6240,6 +6242,11 @@ dotenv@^10.0.0:
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81"
integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==

dotenv@^16.4.5:
version "16.4.5"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f"
integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==

dotenv@^8.2.0, dotenv@^8.6.0:
version "8.6.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.6.0.tgz#061af664d19f7f4d8fc6e4ff9b584ce237adcb8b"
Expand Down Expand Up @@ -7576,7 +7583,7 @@ graphql-tag@^2.12.3:
dependencies:
tslib "^2.1.0"

graphql@^16.8.1:
graphql@^16.8.1, graphql@^16.8.2:
version "16.9.0"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.9.0.tgz#1c310e63f16a49ce1fbb230bd0a000e99f6f115f"
integrity sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==
Expand Down

0 comments on commit d786941

Please sign in to comment.