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

Paul/upgrade core2.0 #309

Merged
merged 4 commits into from
Jan 4, 2024
Merged

Paul/upgrade core2.0 #309

merged 4 commits into from
Jan 4, 2024

Conversation

paullinator
Copy link
Member

@paullinator paullinator commented Dec 19, 2023

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Comment on lines 318 to 327
destAsset: {
pluginId: request.toWallet.currencyInfo.pluginId,
tokenId: request.toTokenId,
nativeAmount: amountExpectedToNative
},
sourceAsset: {
pluginId: request.fromWallet.currencyInfo.pluginId,
tokenId: request.fromTokenId,
nativeAmount: amountExpectedFromNative
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a request for change, but more of an "oops, oh well":

The swap request uses the terms "from" and "to", but the swap action uses the terms "dest" and "source". It might have been sweeter to do fromAsset: EdgeAsset and toAsset: EdgeAsset in the swap action types, since it's not only shorter but also matches the existing naming.

@paullinator
Copy link
Member Author

Added commit to rename source/dest to to/fromAsset.

@paullinator
Copy link
Member Author

Do not merge until edge-core-js 2.0 is published and this PR is modified to upgrade core

@paullinator paullinator merged commit 1cbe56c into master Jan 4, 2024
1 check passed
@paullinator paullinator deleted the paul/upgradeCore2.0 branch January 4, 2024 23:15
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.

2 participants