Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Circle chain id not found for Testnet Sepolia when running a manual transfer #668

Open
therealsuji opened this issue Aug 11, 2024 · 1 comment

Comments

@therealsuji
Copy link

therealsuji commented Aug 11, 2024

When running a manual transfer using the wormhole connect sdk for CCTP, Use this example https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/develop/examples/src/cctp.ts. The transaction fails to initialise, for the following chains

Source -> Testnet Sepolia
Destination -> Testnet Solana

this error is thrown

file:///path/Wormhole%20SDK%20Examples/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@wormhole-foundation/sdk-evm-cctp/dist/esm/circleBridge.js:28
            throw new Error(`Circle chain id not found for ${network} ${chain}`);
                  ^
Error: Circle chain id not found for Testnet Sepolia

I found the offending line and it seems the check does a falsy check, but the circle chain id for testnet sepolia is 0, causing it to throw an error

@wormhole-foundation wormhole-foundation deleted a comment Aug 13, 2024
@obumnwabude
Copy link

Yes, this was the case previously because Sepolia was previously emitted in the list of finalities of chains at https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/core/base/src/constants/finality.ts

But @evgeniko recently added it in PR #688, so problem should be solved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants