Skip to content

bug: Missing BASE Chain ID in SAFE_TRANSACTION_SERVICE_URL Mapping #241

Description

@vnaysngh

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

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions