To add a test for an unknown chain ID, follow these steps:
Locate the Test File: Navigate to the test file where chain ID tests are implemented. This is likely in the tests directory, possibly under a file related to chain ID validation.
Add Test Case: Add a new test case for an unknown chain ID. For example, in a file like ChainIDTest.js, add the following code:
#### About Greptile
This response provides a starting point for your research, not a precise solution.
Help us improve! Please leave a ๐ if this is helpful and ๐ if it is irrelevant.
[Ask Greptile](https://app.greptile.com/chat/github/synapsecns/sanguine/master) ยท [Edit Issue Bot Settings](https://app.greptile.com/apps/github)
To add a test for an unknown chain ID, follow these steps:
Locate the Test File: Navigate to the test file where chain ID tests are implemented. This is likely in the
tests
directory, possibly under a file related to chain ID validation.Add Test Case: Add a new test case for an unknown chain ID. For example, in a file like
ChainIDTest.js
, add the following code:ChainIDHandler.js
:Add test for unknown chain ID
.References
/packages/sdk-router/src/sdk.test.ts /agents/contracts/test/attestationharness/generate.go /packages/contracts-rfq/deployments/base_sepolia /services/rfq/README.md /packages/contracts-rfq/deployments/op_sepolia /services/explorer/graphql/client/client.go /docs/bridge/docs/rfq/API/upsert-quote.api.mdx /agents/contracts/test/snapshotharness/generate.go /services/rfq/relayer/relapi/model.go /services/scribe/config/chain.go /packages/contracts-rfq/deployments/eth_sepolia /packages/synapse-interface/assets/chains /packages/contracts-rfq/deployments/bnb_testnet /packages/solidity-devops/deployments/eth_sepolia /services/rfq/api/docs/swagger.yaml /packages/contracts-rfq/deployments/mainnet /packages/contracts-rfq/deployments/scroll /core/go.mod /packages/contracts-rfq/deployments/base /packages/contracts-rfq/deployments/optimism /packages/contracts-rfq/deployments/scroll_sepolia /services/cctp-relayer/contracts/cctp/generate.go /agents/contracts/destination/generate.go /packages/synapse-interface/public/pauses/v1/examples/paused-chains-example.json /services/explorer/go.mod
#### About Greptile
This response provides a starting point for your research, not a precise solution. Help us improve! Please leave a ๐ if this is helpful and ๐ if it is irrelevant. [Ask Greptile](https://app.greptile.com/chat/github/synapsecns/sanguine/master) ยท [Edit Issue Bot Settings](https://app.greptile.com/apps/github)