Skip to content

Commit 8c24de2

Browse files
feat: fixes cache not importing types issue
1 parent a963990 commit 8c24de2

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

examples/supply/src/ChainSelector.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
type Chain,
33
type ChainId,
44
ChainsFilter,
5+
type EvmAddress,
56
useAaveChains,
67
} from '@aave/react';
78

@@ -21,6 +22,11 @@ export function ChainSelector({
2122
filter: ChainsFilter.ALL,
2223
});
2324

25+
const firstChain = chains?.[0];
26+
if (firstChain) {
27+
const test: EvmAddress = firstChain.chainId;
28+
}
29+
2430
const handleChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
2531
const selectedChain = chains.find(
2632
(chain) => chain.chainId === Number(event.target.value),

packages/client/src/thirdweb.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ function sendTransactionAndWait(
5555
.map(async (hash) =>
5656
waitForReceipt({
5757
client,
58-
chain: request.chainId,
58+
chain: {
59+
id: request.chainId,
60+
rpc: `https://${request.chainId}.rpc.thirdweb.com/${client.clientId}`,
61+
},
5962
transactionHash: hash,
6063
}),
6164
)

packages/graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"dependencies": {
5353
"@aave/types": "workspace:*",
54-
"gql.tada": "^1.8.11",
54+
"gql.tada": "^1.8.13",
5555
"graphql": "^16.11.0",
5656
"type-fest": "^4.41.0"
5757
},

packages/react/src/thirdweb.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,11 @@ export function useSendTransaction(
132132
sendAndConfirmTx({
133133
to: request.to,
134134
data: request.data,
135-
value: request.value,
136-
chain: request.chainId,
135+
value: BigInt(request.value),
136+
chain: {
137+
id: request.chainId,
138+
rpc: `https://${request.chainId}.rpc.thirdweb.com/${thirdwebClient.clientId}`,
139+
},
137140
client: thirdwebClient,
138141
}),
139142
(err) => SigningError.from(err),

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)