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

Audit 10: Remove Duplicate Fee Function #1315

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

alistair-singh
Copy link
Contributor

_sendTokenCosts and _sendForeignTokenCosts do the exact same thing. We can just re-use _sendTokenCosts.

Resolves: SNO-1202

@claravanstaden claravanstaden mentioned this pull request Oct 17, 2024
@claravanstaden
Copy link
Contributor

@alistair-singh it looks like this a duplicate of issue 11. Just confirming, reusing the same method fixes "10. Querying costs of sending a native asset is not exposed" as well, correct?

@alistair-singh
Copy link
Contributor Author

@alistair-singh it looks like this a duplicate of issue 11. Just confirming, reusing the same method fixes "10. Querying costs of sending a native asset is not exposed" as well, correct?

Yes it does, because there is no point exposing the duplicate function. Rather remove the duplicate.

@alistair-singh alistair-singh merged commit 6d11768 into main Oct 17, 2024
1 check passed
@alistair-singh alistair-singh deleted the alistair/audit-10 branch October 17, 2024 09:44
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