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

feat: add support for paying with ERC20 or AssetId for services #845

Merged
merged 10 commits into from
Dec 6, 2024

Conversation

shekohex
Copy link
Contributor

@shekohex shekohex commented Dec 3, 2024

Summary of changes
Changes introduced in this pull request:

This pull request includes several updates and enhancements across multiple files, focusing on configuration changes, code refactoring, and new functionality. Here are the most important changes:

New Functionality:

Dependency and Import Updates:

Enhancements and Bug Fixes:

  • pallets/services/src/lib.rs: Enhanced the request function to support payment with different asset types, including native currency and ERC20 tokens. Added validation and transfer logic for these assets. [1] [2] [3]

These changes collectively improve the codebase by enforcing consistent coding standards, refactoring for clarity, adding new functionalities, and enhancing existing features.

Reference issue to close (if applicable)

Part of tangle-network/tnt-core#28

precompiles/services/Services.sol Show resolved Hide resolved
precompiles/services/src/lib.rs Outdated Show resolved Hide resolved
@shekohex shekohex marked this pull request as ready for review December 6, 2024 14:44
@shekohex shekohex requested a review from 1xstj as a code owner December 6, 2024 14:44
@shekohex
Copy link
Contributor Author

shekohex commented Dec 6, 2024

Companion PR: tangle-network/tnt-core#43

@shekohex shekohex requested a review from drewstone December 6, 2024 14:46
@drewstone drewstone merged commit 1edc6b7 into main Dec 6, 2024
3 checks passed
@drewstone drewstone deleted the shady/multi-token-support branch December 6, 2024 17:29
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