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

[trello.com/c/YrmN2oiR]: ERC20WalletService tests #675

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

ChrisBenua
Copy link
Member

Implemented ERC20WalletService tests.

Main logic is the same as in EthWalletService tests, but there are specific cases where I spent most of time trying to figure out.

For example, to get multiplier for current token, API call is used. I mock it using makeDecimalsMock and its response looks like 0x0000000000000000000000000000000000000000000000000000000000000006.

Additionally ERC20ApiServiceProtocolMock was needed to proxy all URL calls through custom Web3Provider with out custom URLSession

@ChrisBenua ChrisBenua force-pushed the trello.com/c/Htm0a2Qp branch from 6503ae7 to 4af9778 Compare January 30, 2025 19:37
@ChrisBenua ChrisBenua force-pushed the trello.com/c/YrmN2oiR branch from e40137e to 72b6814 Compare January 30, 2025 19:49
@ChrisBenua ChrisBenua force-pushed the trello.com/c/Htm0a2Qp branch 2 times, most recently from b3cd59f to b2cb6e1 Compare January 31, 2025 21:08
@ChrisBenua ChrisBenua force-pushed the trello.com/c/YrmN2oiR branch from 72b6814 to 3f0fe9b Compare January 31, 2025 21:09
@ChrisBenua ChrisBenua force-pushed the trello.com/c/YrmN2oiR branch from 3f0fe9b to 21c95d2 Compare February 3, 2025 10:52
@ChrisBenua ChrisBenua changed the base branch from trello.com/c/Htm0a2Qp to develop February 3, 2025 10:53
@ChrisBenua ChrisBenua merged commit 75635bf into develop Feb 3, 2025
@ChrisBenua ChrisBenua deleted the trello.com/c/YrmN2oiR branch February 3, 2025 10:54
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