@@ -14,7 +14,7 @@ import { useAddRecentTransaction } from '@app/hooks/transactions/useAddRecentTra
1414import { useRecentTransactions } from '@app/hooks/transactions/useRecentTransactions'
1515import { useIsSafeApp } from '@app/hooks/useIsSafeApp'
1616import { GenericTransaction } from '@app/transaction-flow/types'
17- import { getAccessList } from '@app/utils/query/getAccessList '
17+ import { createAccessList } from '@app/utils/query/createAccessList '
1818import { checkIsSafeApp } from '@app/utils/safe'
1919
2020import { makeMockIntersectionObserver } from '../../../../../test/mock/makeMockIntersectionObserver'
@@ -29,7 +29,7 @@ vi.mock('@app/hooks/transactions/useAddRecentTransaction')
2929vi . mock ( '@app/hooks/transactions/useRecentTransactions' )
3030vi . mock ( '@app/hooks/chain/useInvalidateOnBlock' )
3131vi . mock ( '@app/utils/safe' )
32- vi . mock ( '@app/utils/query/getAccessList ' )
32+ vi . mock ( '@app/utils/query/createAccessList ' )
3333vi . mock ( '@wagmi/core' , async ( ) => {
3434 const actual = await vi . importActual ( '@wagmi/core' )
3535 return {
@@ -81,7 +81,7 @@ const mockUseClient = mockFunction(useClient)
8181const mockUseConnectorClient = mockFunction ( useConnectorClient )
8282
8383const mockEstimateGas = mockFunction ( estimateGas )
84- const mockGetAccessList = getAccessList as MockedFunctionDeep < typeof getAccessList >
84+ const mockCreateAccessList = createAccessList as MockedFunctionDeep < typeof createAccessList >
8585const mockPrepareTransactionRequest = prepareTransactionRequest as MockedFunctionDeep <
8686 typeof prepareTransactionRequest
8787>
@@ -211,7 +211,7 @@ describe('TransactionStageModal', () => {
211211 } )
212212
213213 it ( 'should disable confirm button and re-estimate gas if a unique identifier is changed' , async ( ) => {
214- mockGetAccessList . mockResolvedValue ( { accessList : [ ] , gasUsed : '0x64' } )
214+ mockCreateAccessList . mockResolvedValue ( { accessList : [ ] , gasUsed : '0x64' } )
215215 mockEstimateGas . mockResolvedValue ( 1n )
216216 mockUseIsSafeApp . mockReturnValue ( { data : false } )
217217 mockUseSendTransaction . mockReturnValue ( {
@@ -240,7 +240,7 @@ describe('TransactionStageModal', () => {
240240 } )
241241
242242 it ( 'should only show confirm button as enabled if gas is estimated and sendTransaction func is defined' , async ( ) => {
243- mockGetAccessList . mockResolvedValue ( { accessList : [ ] , gasUsed : '0x64' } )
243+ mockCreateAccessList . mockResolvedValue ( { accessList : [ ] , gasUsed : '0x64' } )
244244 mockEstimateGas . mockResolvedValue ( 1n )
245245 mockUseSendTransaction . mockReturnValue ( {
246246 sendTransaction : ( ) => Promise . resolve ( ) ,
@@ -251,7 +251,7 @@ describe('TransactionStageModal', () => {
251251 )
252252 } )
253253 it ( 'should run set sendTransaction on action click' , async ( ) => {
254- mockGetAccessList . mockResolvedValue ( { accessList : [ ] , gasUsed : '0x64' } )
254+ mockCreateAccessList . mockResolvedValue ( { accessList : [ ] , gasUsed : '0x64' } )
255255 mockEstimateGas . mockResolvedValue ( 1n )
256256 const mockSendTransaction = vi . fn ( )
257257 mockUseSendTransaction . mockReturnValue ( {
@@ -292,7 +292,7 @@ describe('TransactionStageModal', () => {
292292 } )
293293 it ( 'should pass the request to send transaction' , async ( ) => {
294294 mockUseIsSafeApp . mockReturnValue ( { data : false } )
295- mockGetAccessList . mockResolvedValue ( { accessList : [ ] , gasUsed : '0x64' } )
295+ mockCreateAccessList . mockResolvedValue ( { accessList : [ ] , gasUsed : '0x64' } )
296296 mockEstimateGas . mockResolvedValue ( 1n )
297297 const mockSendTransaction = vi . fn ( )
298298 mockUseSendTransaction . mockReturnValue ( {
@@ -525,7 +525,7 @@ describe('calculateGasLimit', () => {
525525
526526 it ( 'should calculate gas limit' , async ( ) => {
527527 mockEstimateGas . mockResolvedValueOnce ( 100000n )
528- mockGetAccessList . mockResolvedValueOnce ( mockAccessListResponse )
528+ mockCreateAccessList . mockResolvedValueOnce ( mockAccessListResponse )
529529 const result = await calculateGasLimit ( {
530530 txWithZeroGas : mockTxWithZeroGas ,
531531 transactionName : mockTransactionName ,
0 commit comments