Skip to content

chore(transaction): update amounts json#111

Merged
faustbrian merged 5 commits intoArkEcosystemArchive:developfrom
sleepdefic1t:chore(transaction)/update-amounts-json
Jul 16, 2019
Merged

chore(transaction): update amounts json#111
faustbrian merged 5 commits intoArkEcosystemArchive:developfrom
sleepdefic1t:chore(transaction)/update-amounts-json

Conversation

@sleepdefic1t
Copy link
Contributor

This PR updates transaction json values to match Core 2.5.

  • transaction amount Json as string.
  • transaction fee Json as string.
  • updates tests to match changes.
  • cleanup transaction tests.

What kind of change does this PR introduce?

  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR release a new version?

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the develop branch, not the master branch
  • All tests are passing
  • New/updated tests are included

This PR updates transaction json values to match Core 2.5.

- transaction `amount` Json as string.
- transaction `fee` Json as string.
- updates tests to match changes.
- cleanup transaction tests.
@ghost ghost added Complexity: High More than 256 lines changed. Type: Task The issue is a request to setup third-party integrations or any general non-code related tasks. labels Jul 13, 2019
@faustbrian
Copy link
Contributor

There are a few more fields that need changing. You can check @supaiku0 Rust PR at https://github.com/ArkEcosystem/rust-client/pull/45/files.

@codecov-io
Copy link

Codecov Report

Merging #111 into develop will not change coverage.
The diff coverage is 95%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #111   +/-   ##
========================================
  Coverage    91.52%   91.52%           
========================================
  Files           30       30           
  Lines          861      861           
========================================
  Hits           788      788           
  Misses          73       73
Impacted Files Coverage Δ
src/include/cpp-crypto/transactions/transaction.h 66.66% <ø> (ø) ⬆️
src/transactions/serializer.cpp 88.61% <100%> (ø) ⬆️
src/transactions/transaction.cpp 88.94% <100%> (ø) ⬆️
src/transactions/deserializer.cpp 88% <100%> (ø) ⬆️
src/identities/address.cpp 100% <100%> (ø) ⬆️
src/transactions/builder.cpp 76.36% <66.66%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 56864e0...1ef7dc0. Read the comment docs.

@sleepdefic1t
Copy link
Contributor Author

@faustbrian

recipientId needed updated to recipient.
Then each platform had their own complaint about string comparisons in unit tests 😂

There's no modeling of API responses, and no transaction.fromJson() yet;
so that should wrap things up.

Should be good now 👍

@faustbrian faustbrian merged commit afcd2d3 into ArkEcosystemArchive:develop Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complexity: High More than 256 lines changed. Type: Task The issue is a request to setup third-party integrations or any general non-code related tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants