Skip to content

Commit 6d61dfa

Browse files
Make getCoinRecords a mutation (#2908)
* add egtPuzzleAndSolution and make getCoinRecords a mutation * useGetPuzzleAndSolutionMutation, * add height to getPuzzleAndSolution * remove unused lazy * addd missing brace * fix formatting * alphabettise height * allow list new command * Removed improperly implemented getPuzzleAndSolution. It is properly implemented in another branch. --------- Co-authored-by: Bram Cohen <bram@chia.net>
1 parent d51b3d3 commit 6d61dfa

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

packages/api-react/src/services/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ export const {
155155
useGetTransactionsCountQuery,
156156
useGetCurrentAddressQuery,
157157
useGetNextAddressMutation,
158-
useGetCoinRecordsByNamesQuery,
159-
useLazyGetCoinRecordsByNamesQuery,
158+
useGetCoinRecordsByNamesMutation,
160159
usePushTransactionsMutation,
161160
useSelectCoinsQuery,
162161
useLazySelectCoinsQuery,

packages/api-react/src/services/wallet.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ export const walletApi = apiWithTag.injectEndpoints({
544544
invalidatesTags: (result, _error, { walletId }) => (result ? [{ type: 'Address', id: walletId }] : []),
545545
}),
546546

547-
getCoinRecordsByNames: query(build, WalletService, 'getCoinRecordsByNames'),
547+
getCoinRecordsByNames: mutation(build, WalletService, 'getCoinRecordsByNames'),
548548

549549
pushTransactions: mutation(build, WalletService, 'pushTransactions', {
550550
invalidatesTags: [{ type: 'Transactions', id: 'LIST' }],
@@ -1567,8 +1567,7 @@ export const {
15671567
useGetTransactionsCountQuery,
15681568
useGetCurrentAddressQuery,
15691569
useGetNextAddressMutation,
1570-
useGetCoinRecordsByNamesQuery,
1571-
useLazyGetCoinRecordsByNamesQuery,
1570+
useGetCoinRecordsByNamesMutation,
15721571
usePushTransactionsMutation,
15731572
useSelectCoinsQuery,
15741573
useLazySelectCoinsQuery,

0 commit comments

Comments
 (0)