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

server/asset: trade address validation consistency #2248

Merged
merged 1 commit into from Mar 24, 2023

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Mar 23, 2023

The trade address provided with an order is checked for validity, but it also must be checked that it is the proper type for inclusion in a swap contract. This renames server.asset.CheckAddress to CheckSwapAddress, and updates it with the same type checks used client-side in dex/networks/{dcr,btc}.MakeContract as well as in ExtractSwapDetails.

The trade address provided with an order is checked for validity, but it
also must be checked that it is the proper type for inclusion in a swap
contract.  This renames server.asset.CheckAddress to CheckSwapAddress,
and updates it with the same type checks used client-side in
dex/networks/{dcr,btc}.MakeContract as well as in ExtractSwapDetails.
@chappjc chappjc added the bug bug or bugfix label Mar 23, 2023
@chappjc chappjc added this to the 0.6 milestone Mar 23, 2023
@chappjc chappjc merged commit 1585b9d into decred:master Mar 24, 2023
5 checks passed
@chappjc chappjc deleted the check-swap-address-type branch March 24, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants