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

Scenarios for 0 amount tx for multi and single output for CLI and API #458

Merged
merged 2 commits into from
Jun 25, 2019

Conversation

piotr-iohk
Copy link
Contributor

Issue Number

#364

Overview

  • I have added more scenarios for 0 amount transaction for single and multi output transaction for CLI and API

Comments

@@ -715,3 +715,34 @@ spec = do
[ expectResponseCode HTTP.status403
, expectErrorMessage errMsg403InvalidTransaction
]

it "TRANS_CREATE_09 - 0 amount transaction is forbidden on multi-output tx" $ \ctx -> do
wSrc <- fixtureWalletWith ctx [10_000_000, 12_000_000]
Copy link
Member

Choose a reason for hiding this comment

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

What's the need for having the output defined as such? (asking because fixtureWalletWith needs to restore a 2 wallets & make two transactions, which is quite expensive (in terms of time) to do).

I don't think it's needed for the test here and, going for fixtureWallet should be enough, don't you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, no particular reason for that. Will change to fixtureWallet.

@piotr-iohk piotr-iohk force-pushed the piotr/cli_test_for_o_amount_tx branch from c77a0c7 to 5d6855e Compare June 24, 2019 13:41
@piotr-iohk piotr-iohk force-pushed the piotr/cli_test_for_o_amount_tx branch from 5d6855e to 756cefd Compare June 25, 2019 05:47
@piotr-iohk piotr-iohk merged commit d29f0e9 into master Jun 25, 2019
@piotr-iohk piotr-iohk deleted the piotr/cli_test_for_o_amount_tx branch June 25, 2019 06:27
@piotr-iohk piotr-iohk self-assigned this Jun 25, 2019
@KtorZ KtorZ added this to the Bugs Sprint 25-26 milestone Jul 2, 2019
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.

None yet

2 participants