Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec committed Sep 18, 2024
1 parent ea2d4f5 commit cf5c984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/swap/hooks/useAwaitCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function useAwaitCalls({
accountConfig,
config,
lifecycleStatus,
setLifecycleStatus,
updateLifecycleStatus,
}: UseAwaitCallsParams) {
const callsId =
lifecycleStatus.statusName === 'transactionApproved'
Expand All @@ -33,14 +33,12 @@ export function useAwaitCalls({
hash: data.receipts[data.receipts.length - 1].transactionHash,
},
);
setLifecycleStatus({
updateLifecycleStatus({

Check failure on line 36 in src/swap/hooks/useAwaitCalls.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

src/swap/hooks/useAwaitCalls.test.ts > useAwaitCalls > should call waitForTransactionReceipt and update lifecycle status when data status is CONFIRMED

TypeError: updateLifecycleStatus is not a function ❯ Object.current src/swap/hooks/useAwaitCalls.ts:36:7 ❯ src/swap/hooks/useAwaitCalls.test.ts:79:7
statusName: 'success',
statusData: {
isMissingRequiredField: false,
maxSlippage: config.maxSlippage,
transactionReceipt,
},
});
}
}, [accountConfig, config.maxSlippage, data, setLifecycleStatus]);
}, [accountConfig, config.maxSlippage, data, updateLifecycleStatus]);
}
2 changes: 1 addition & 1 deletion src/swap/utils/getTransactionType.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Call } from '../../transaction/types';
import { SwapTransactionType } from '../types';
import type { SwapTransactionType } from '../types';

export function getTransactionType(
transactions: Call[],
Expand Down

0 comments on commit cf5c984

Please sign in to comment.