-
Notifications
You must be signed in to change notification settings - Fork 144
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
fix: serialize deserialize FileAppend #2532
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2532 +/- ##
=======================================
Coverage 84.39% 84.39%
=======================================
Files 283 283
Lines 70929 71017 +88
=======================================
+ Hits 59863 59938 +75
- Misses 11066 11079 +13 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
efdc396
to
40f799a
Compare
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
40f799a
to
16a476d
Compare
…nsaction class Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Quality Gate failedFailed conditions |
* fix: serialize deserialize fileappend Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: return _makeTransactionData Signed-off-by: Ivaylo Nikolov <[email protected]> * test: add integration test for fromByte toByte converison Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: implement better transaction conversion Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: fileappend hip-765 finish implementation Signed-off-by: Ivaylo Nikolov <[email protected]> * revert: remove multi signature multi node feat for FileAppend Signed-off-by: Ivaylo Nikolov <[email protected]> * test: freeze transaction after fromBytes Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: disallow addSignature check for chunked transactions in transaction class Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: linter complains about skipped test Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: move type definitions because of linter Signed-off-by: Ivaylo Nikolov <[email protected]> * revert: old type definitions Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: throw error when required chunks are more than max chunks Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: required chunks should not be an error Signed-off-by: Ivaylo Nikolov <[email protected]> * style: fix jsdoc comment when building incomplete transaction Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: reuse variables in file append integration tests Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: delete already defined variables Signed-off-by: Ivaylo Nikolov <[email protected]> * test: fix typo in test name Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: return back addSignature return type Signed-off-by: Ivaylo Nikolov <[email protected]> * test: fix typo Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: implement maxChunks when serializing content too Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: wrong comparison Signed-off-by: Ivaylo Nikolov <[email protected]> * style: add empty lines Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: generate new transactionId Signed-off-by: Ivaylo Nikolov <[email protected]> * test: add more integration tests Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: extract dummy account id to const Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: fix function nane typo Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: fix function name typo 2 Signed-off-by: Ivaylo Nikolov <[email protected]> * chore: remove incompleted references Signed-off-by: Ivaylo Nikolov <[email protected]> --------- Signed-off-by: Ivaylo Nikolov <[email protected]> Signed-off-by: b-l-u-e <[email protected]>
* fix: serialize deserialize fileappend Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: return _makeTransactionData Signed-off-by: Ivaylo Nikolov <[email protected]> * test: add integration test for fromByte toByte converison Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: implement better transaction conversion Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: fileappend hip-765 finish implementation Signed-off-by: Ivaylo Nikolov <[email protected]> * revert: remove multi signature multi node feat for FileAppend Signed-off-by: Ivaylo Nikolov <[email protected]> * test: freeze transaction after fromBytes Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: disallow addSignature check for chunked transactions in transaction class Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: linter complains about skipped test Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: move type definitions because of linter Signed-off-by: Ivaylo Nikolov <[email protected]> * revert: old type definitions Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: throw error when required chunks are more than max chunks Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: required chunks should not be an error Signed-off-by: Ivaylo Nikolov <[email protected]> * style: fix jsdoc comment when building incomplete transaction Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: reuse variables in file append integration tests Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: delete already defined variables Signed-off-by: Ivaylo Nikolov <[email protected]> * test: fix typo in test name Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: return back addSignature return type Signed-off-by: Ivaylo Nikolov <[email protected]> * test: fix typo Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: implement maxChunks when serializing content too Signed-off-by: Ivaylo Nikolov <[email protected]> * fix: wrong comparison Signed-off-by: Ivaylo Nikolov <[email protected]> * style: add empty lines Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: generate new transactionId Signed-off-by: Ivaylo Nikolov <[email protected]> * test: add more integration tests Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: extract dummy account id to const Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: fix function nane typo Signed-off-by: Ivaylo Nikolov <[email protected]> * refactor: fix function name typo 2 Signed-off-by: Ivaylo Nikolov <[email protected]> * chore: remove incompleted references Signed-off-by: Ivaylo Nikolov <[email protected]> --------- Signed-off-by: Ivaylo Nikolov <[email protected]> Signed-off-by: b-l-u-e <[email protected]>
Description:
Implement chunk logic for toBytes method and disallow addSignature function until the next release.
Fixes #2167 #2536
Notes for reviewer:
There should be refactoring done. We need to implement
ChunkTransaction
. This fix is more like a patch before the major refactor for ChunkedTransaction like the other SDKs.Checklist