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> = { |

The TypeScript error occurs because
SAFE_TRANSACTION_SERVICE_URLis defined as aRecord<SupportedChainId, string>, but it does not include an entry forSupportedChainId.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.BASEto satisfy theRecord<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'cow-sdk/examples/cra/src/pages/smartContractWallet/const.ts
Line 8 in bb8acf2