thirdweb-dev / engine

The most powerful backend engine for web3 apps.
https://thirdweb.com/engine
Apache License 2.0
152 stars 59 forks source link

chore: Call defineChain to ensure chain registration in CUSTOM_CHAIN_MAP #636

Closed d4mr closed 2 months ago

d4mr commented 2 months ago

This commit modifies the getChain function in the chain.ts file to call the defineChain function when a matching chain override is found. This ensures that the chain is registered in the CUSTOM_CHAIN_MAP even if a Chain type is already available.


PR-Codex overview

This PR updates chain.ts to ensure that the chain is registered in CUSTOM_CHAIN_MAP by calling defineChain for the specified chainId.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}