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

update: fix issues in native sol transfer #407

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

composable-kvn
Copy link

@composable-kvn composable-kvn commented Dec 5, 2024

To run a test, you can simply execute the following command.

./bridge-escrow-test.sh

Updates on Solana Program

  • send_funds_to_user
  • send_funds_to_user_cross_chain
  • escrow_and_store_intent

Updates on Test

  • Added the test for send_funds_to_user
  • Still needs to add some assertions.

Unclear things

  • bridge::bridge_transfer seems to be updated. But needs help of @alberto

@doradelta doradelta merged commit 83367f4 into ComposableFi:upgrade Dec 13, 2024
0 of 3 checks passed
)?;
let out_user_account = accounts.user_account.clone().unwrap();

**solver.lamports.borrow_mut() -= amount_out;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since solver account is owned by system program, u need to call system program to transfer just like how you do it in escrow_and_store_intent method.

)?;
let out_user_account = accounts.user_account.clone().unwrap();

**solver.lamports.borrow_mut() -= amount_out;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here as well.

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

Successfully merging this pull request may close these issues.

3 participants