Skip to content

Commit

Permalink
chore: bump sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed May 11, 2023
1 parent 5b37b6f commit b226356
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 172 deletions.
2 changes: 1 addition & 1 deletion packages/wallet-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@ethersproject/abstract-signer": "^5.7.0",
"@ethersproject/experimental": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@lifi/sdk": "^2.0.0-beta.11",
"@lifi/sdk": "^2.0.0-beta.12",
"@walletconnect/ethereum-provider": "^1.8.0",
"@walletconnect/web3-provider": "^1.8.0",
"events": "^3.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/widget-embedded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"author": "Eugene Chybisov <eugene@li.finance>",
"dependencies": {
"@ethersproject/abstract-signer": "^5.7.0",
"@lifi/sdk": "^2.0.0-beta.11",
"@lifi/sdk": "^2.0.0-beta.12",
"@lifi/wallet-management": "^2.0.0-beta.5",
"@lifi/widget": "^2.0.0-beta.7",
"@mui/icons-material": "^5.11.16",
Expand All @@ -38,7 +38,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.11.1",
"web3": "^1.9.0"
"web3": "^1.10.0"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"author": "Eugene Chybisov <eugene@li.finance>",
"dependencies": {
"@lifi/sdk": "^2.0.0-beta.11",
"@lifi/sdk": "^2.0.0-beta.12",
"@lifi/wallet-management": "^2.0.0-beta.5",
"@lifi/widget": "^2.0.0-beta.7",
"@mui/icons-material": "^5.11.16",
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@ethersproject/address": "^5.7.0",
"@ethersproject/experimental": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@lifi/sdk": "^2.0.0-beta.11",
"@lifi/sdk": "^2.0.0-beta.12",
"@lifi/wallet-management": "^2.0.0-beta.5",
"@mui/icons-material": "^5.11.16",
"@mui/lab": "^5.0.0-alpha.129",
Expand Down
6 changes: 3 additions & 3 deletions packages/widget/src/hooks/useRouteExecution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const useRouteExecution = ({
shallow,
);

const updateCallback = (updatedRoute: Route) => {
const updateRouteHook = (updatedRoute: Route) => {
const routeExecution =
routeExecutionStoreContext.getState().routes[updatedRoute.id];
if (!routeExecution) {
Expand Down Expand Up @@ -107,7 +107,7 @@ export const useRouteExecution = ({
}
queryClient.removeQueries(['routes'], { exact: false });
return lifi.executeRoute(account.signer, routeExecution.route, {
updateCallback,
updateRouteHook,
switchChainHook,
acceptExchangeRateUpdateHook,
infiniteApproval: false,
Expand Down Expand Up @@ -136,7 +136,7 @@ export const useRouteExecution = ({
account.signer,
resumedRoute ?? routeExecution.route,
{
updateCallback,
updateRouteHook,
switchChainHook,
acceptExchangeRateUpdateHook,
infiniteApproval: false,
Expand Down
Loading

0 comments on commit b226356

Please sign in to comment.