-
Notifications
You must be signed in to change notification settings - Fork 45
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
Implement prepare_refund()
#548
Implement prepare_refund()
#548
Conversation
af59cfe
to
129da31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, looks good!
Can you please make sure the RN generator code is done with the latest RN generator? We yesterday updated it.
libs/sdk-core/src/swap.rs
Outdated
let swap_info = self | ||
.persister | ||
.get_swap_info_by_address(req.swap_address.clone())? | ||
.ok_or_else(|| anyhow!(format!("swap address {} was not found", req.swap_address)))?; | ||
|
||
let transactions = self | ||
.chain_service | ||
.address_transactions(req.swap_address.clone()) | ||
.await?; | ||
let utxos = get_utxos(req.swap_address, transactions)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can extract out this code to a function that can be reused in refund_swap
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Addressed in a2308ba
129da31
to
a2308ba
Compare
I've just rebased and run the generator again. I didn't see any changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RN codegen looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
@danielgranhao this is ready to be merged. We will merge it right after the conflict is resolved. Thanks. |
a2308ba
to
ee2f2fa
Compare
* Created `get_address_utxos` * Created `get_swap_info_ok`
ee2f2fa
to
88207b5
Compare
@roeierez Conflicts should be resolved now :) |
Addresses #526.