Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chilled-crews-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reservoir0x/relay-sdk': patch
---

Fix typescript error in RelayChain
2 changes: 1 addition & 1 deletion packages/sdk/src/types/RelayChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export type RelayChain = {
logoUrl?: string | null
brandColor?: string | null
vmType?: ChainVM
viemChain: Chain
viemChain?: Chain
}
2 changes: 1 addition & 1 deletion packages/sdk/src/utils/viemWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const adaptViemWallet = (wallet: WalletClient): AdaptedWallet => {
throw 'Chain missing from Relay Client'
}
await wallet.addChain({
chain: chain?.viemChain
chain: chain?.viemChain!
})
return
}
Expand Down
Loading