-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
The TypeScript error occurs because SAFE_TRANSACTION_SERVICE_URL
is defined as a Record<SupportedChainId, string>
, but it does not include an entry for SupportedChainId.BASE
. The SupportedChainId enum from @cowprotocol/cow-sdk likely includes BASE, making its presence mandatory in the Record.
Steps to reproduce:
The compiler throws an error right after you build the CRA example app.
Expected Behavior:
The mapping should include an entry for SupportedChainId.BASE
to satisfy the Record<SupportedChainId, string>
type requirement.
Suggested Fix:
Add an entry for SupportedChainId.BASE in SAFE_TRANSACTION_SERVICE_URL, specifying the correct transaction service URL for Base network:
[SupportedChainId.BASE]: 'https://safe-transaction-base.safe.global'
export const SAFE_TRANSACTION_SERVICE_URL: Record<SupportedChainId, string> = { |

Metadata
Metadata
Assignees
Labels
No labels