File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ COPY package.json package-lock.json ./
66RUN SKIP_HOOKS=true npm ci
77
88# Package the import-meta-env as single binary as we don't have node on the production container
9- RUN npx @yao-pkg/pkg ./node_modules/@import-meta-env/cli/bin/import-meta-env.js \
9+ RUN npx @yao-pkg/pkg@6.12.0 ./node_modules/@import-meta-env/cli/bin/import-meta-env.js \
1010 -t node20-alpine-x64 \
1111 -o import-meta-env-alpine
1212# To get the git commit hash later
Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ import { utils } from 'ethers';
22
33import { getContext , ContextModule } from '~context/index.ts' ;
44import {
5- GetUserByAddressDocument ,
6- type GetUserByAddressQuery ,
7- type GetUserByAddressQueryVariables ,
5+ GetOwnUserDocument ,
6+ type GetOwnUserQuery ,
7+ type GetOwnUserQueryVariables ,
88} from '~gql' ;
99import { canUseMetatransactions } from '~utils/checks/index.ts' ;
1010
11+ import type { ApolloQueryResult } from '@apollo/client' ;
12+
1113export function * metatransactionsEnabled ( ) {
1214 const metatransactionsAvailable = canUseMetatransactions ( ) ;
1315
@@ -20,11 +22,11 @@ export function* metatransactionsEnabled() {
2022
2123 const checksummedWalletAddress = utils . getAddress ( wallet . address ) ;
2224
23- const { data } = yield apolloClient . query <
24- GetUserByAddressQuery ,
25- GetUserByAddressQueryVariables
25+ const { data } : ApolloQueryResult < GetOwnUserQuery > = yield apolloClient . query <
26+ GetOwnUserQuery ,
27+ GetOwnUserQueryVariables
2628 > ( {
27- query : GetUserByAddressDocument ,
29+ query : GetOwnUserDocument ,
2830 variables : {
2931 address : checksummedWalletAddress ,
3032 } ,
You can’t perform that action at this time.
0 commit comments