Skip to content

fix(builder/transaction): Properly handle 0 ARKtoshi amount#80

Closed
sleepdefic1t wants to merge 23 commits intoArkEcosystemArchive:masterfrom
sleepdefic1t:fix/zero-arktoshi
Closed

fix(builder/transaction): Properly handle 0 ARKtoshi amount#80
sleepdefic1t wants to merge 23 commits intoArkEcosystemArchive:masterfrom
sleepdefic1t:fix/zero-arktoshi

Conversation

@sleepdefic1t
Copy link
Contributor

Proposed changes

This PR addresses #79 and adds additional checking to ensure that a 'Type-0'/Transfer Transaction amount is greater than 0 ARKtoshi.

Specifically, this PR does the following:

  • returns empty/unvalidatable transaction if Transfer-type amount is not > 0.
  • adds comments about > 0 ARKtoshi to Transaction::buildTransfer declaration.
  • adds test for 0 ARKtoshi amount on Type-0 tx's.

note: 0 is already default amount for Transactions, no additional changes were needed.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING documentation
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

- list ArduinoJson as a dependency.
- add Arduino sketch path to config.
- fix the 'platformio_example' path.
per #79

- 0 is already default amount for Transactions.
- return empty/unvalidatable transaction if Transfer-type amount is not > 0.
- add comments about > 0 ARKtoshi to Transaction::buildTransfer declaration.
- add test for 0 ARKtoshi amount on Type-0 tx's.
@ghost ghost added Complexity: Low Less than 64 lines changed. Type: Bugfix The pull request fixes an incorrect functionality or behaviour. labels May 13, 2019
@ghost
Copy link

ghost commented May 13, 2019

The ci/circleci: build-linux-default job is failing as of 8cad465cf54f9ec0ddbc6796803c24b94cabb44d. Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@sleepdefic1t
Copy link
Contributor Author

Build failure not a result of these changes.
Only affecting ESP8266 and the BIP39 package.

@sleepdefic1t
Copy link
Contributor Author

@faustbrian
This can be merged if it meets the request in #79

macOS failures are because CircleCI defaults my CI account, which is a free account (no macOS).

linux-default/PlatformIO build fails due to BIP39 package issues.
As discussed in #81 , the BIP39 lib will be dropped in one of the next PR's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complexity: Low Less than 64 lines changed. Type: Bugfix The pull request fixes an incorrect functionality or behaviour.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant