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

Cross-Chain Roundtrip Message Returns Empty String Instead of 'Hello World!' #20

Open
dianalokada opened this issue Jul 1, 2024 · 1 comment

Comments

@dianalokada
Copy link

When attempting a cross-chain message roundtrip using the SenderOnCChain and ReceiverOnSubnet contracts, the roundtripMessage() function on the SenderOnCChain contract returns an empty string instead of the expected "Hello World!" message.
Expected Behavior:
-SenderOnCChain sends "Hello" to ReceiverOnSubnet.
-ReceiverOnSubnet receives "Hello", appends " World!", and sends "Hello World!" back.
-SenderOnCChain receives "Hello World!" and stores it in the roundtripMessage variable.
-Calling roundtripMessage() should return "Hello World!".

Actual Behavior:
Calling roundtripMessage() returns an empty string "".

Screenshot 2024-07-01 at 5 05 38 PM
Screenshot 2024-07-01 at 5 03 00 PM

@SwarnaIslam
Copy link

Facing same issue. When I remove the sending response part from ReceiverOnSubnet, it is working just fine. But seems like adding the sending response part causes reverting or something.(?) Please let me know if you have solved the problem.

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