Skip to content

Commit e4d7323

Browse files
committed
chore: 🤖 add adding chain wallet action
1 parent 6f1738d commit e4d7323

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎redbrick-rotate-game/src/lib/spinService.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function spinSignature(authToken: string) {
2525
export async function buySpin(spinSignatureResponse: {
2626
data: { contractAddress: `0x${string}`; data: `0x${string}`; price: string };
2727
}) {
28+
await walletClient.addChain({ chain });
2829
await walletClient.switchChain({ id: chain.id });
2930
const hash = await walletClient.sendTransaction({
3031
to: spinSignatureResponse.data.contractAddress,

0 commit comments

Comments
 (0)