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

Add Reward Input tests #551

Merged
merged 31 commits into from
Nov 30, 2023
Merged

Add Reward Input tests #551

merged 31 commits into from
Nov 30, 2023

Conversation

PhilippGackstatter
Copy link
Contributor

Add tests that use the Reward Input in various scenarios.

part of #466.

@PhilippGackstatter PhilippGackstatter marked this pull request as ready for review November 28, 2023 13:55
Copy link
Contributor

@cyberphysic4l cyberphysic4l left a comment

Choose a reason for hiding this comment

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

I would prefer to keep the createSignedTransactionWithOptions() method private and create methods for specific things we want to do. It just moves some of the complexity of the tests.

pkg/tests/reward_test.go Outdated Show resolved Hide resolved
pkg/testsuite/mock/wallet_transactions.go Outdated Show resolved Hide resolved
pkg/testsuite/mock/wallet_transactions.go Outdated Show resolved Hide resolved
Copy link
Contributor

@cyberphysic4l cyberphysic4l left a comment

Choose a reason for hiding this comment

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

Just my two suggestions

  • creating a w.StoredMana() method for the wallet like the potential mana one you made.
  • adding a comment linked to the issue for the TODO in rewards pointing to NFT test.

pkg/testsuite/mock/wallet_transactions.go Outdated Show resolved Hide resolved
@PhilippGackstatter PhilippGackstatter merged commit aefe705 into develop Nov 30, 2023
4 checks passed
@PhilippGackstatter PhilippGackstatter deleted the reward-tests branch November 30, 2023 15:52
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