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

Request your help regarding Layerzerov2 OApp. #93

Open
dmsoltech opened this issue Jul 10, 2024 · 4 comments
Open

Request your help regarding Layerzerov2 OApp. #93

dmsoltech opened this issue Jul 10, 2024 · 4 comments

Comments

@dmsoltech
Copy link

Hi. Hope you are doing great.
Now I am integrating layerzero v2 between Solana and Arbitrum.
I got a question here:
I want to send msg from Arbitrum to Solana, but I can't get it from Solana side despite I can see 'inflight' flag from Arbitrum.
In other words, 'Execute' instruction is not called on the Solana side and lzReceiveAlert Event is also not happening.

I am not sure if this is because of my bad configuration settings or other stuff.

Best Regards
Daniel

@BZAghalarov
Copy link

@RustChainBuilder could you share "layerzero.config.ts" file along with transaction hash?

If we consider your comment about configuration as a potential issue, we would like to see the 'OApp Configuration' part of your transaction on https://testnet.layerzeroscan.com/.

Actually the configuration for both column should match with each other as in attached screen.
image

@dmsoltech
Copy link
Author

@BZAghalarov Thanks for your reply.
image
But I don't think that the issue is not Configuration of OApp.
https://solscan.io/tx/yLxic6C3VdakywAkiV7xnKR4rViUQJ6DZ62gvu4i73A6swcADP3N4NecJb3Yni33tP29kvBCPnoWP2Uki9cQ1is?cluster=testnet
This is the transaction hash that succeed delivered from Arbitrum-Sepolia to Solana-testnet.
As you can see here, executor calls oft's lzReceive instruction.
https://github.com/LayerZero-Labs/LayerZero-v2/blob/main/packages/layerzero-v2/solana/programs/programs/executor/src/instructions/execute.rs
This is the code which is provided by layerzero team. But in this code, executor calls endpoint's lz_receve_alert
it is different between source code and analyzing transaction hash.

@BZAghalarov
Copy link

@RustChainBuilder I took a look to it but still couldn't find a real reason.

Previous weekend a participated in hackathon and try to use their documentation but there are some missing points there regarding configuration and setting-up OApp. I will try to make article which is describe every points but for now for generating the same issue in my local I will ask what commands did you ran there or which guide you used.
If it is not issue for you I will try to debug it in my local.

@tothetop430
Copy link

@RustChainBuilder You can use lz_receive_types for lz_receive instruction's context.

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

3 participants