Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add removeSignature/clearAllSignatures methods (#2491)
* feat: Added removeSignature/clearAllSignatures methods to Transaction class, wrote some unit tests for both Signed-off-by: ivaylogarnev-limechain <[email protected]> * feat: Added more unit tests for removeSignature/clearAllSignatures and throwing an error if trying to remove non-existing signature Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Turned signAndAddSignatures function into arrow Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Cleared some unnecessary comments and changed variable assigment Signed-off-by: ivaylogarnev-limechain <[email protected]> * feat: Enhancement removeSignature/clearAllSignatures to return the removedSignatures and wrote tests for both Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Removed the signature param from removeSignature method and adjusted the logic, renamed clearAllSignatures and changed the return type, adjusted some tests Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Remove redundant code Signed-off-by: ivaylogarnev-limechain <[email protected]> * Merge branch 'main' into feat/2461-remove-clear-signatures Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Cleared some uneccessary comments & changed a bit the flow some methods conditions Signed-off-by: ivaylogarnev-limechain <[email protected]> * Merge branch main into feat/2461-remove-clear-signatures Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Refactored signTransaction method a bit, added integration tests and examples for the multi-node flow Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Removed duplicate integration tests and added description to examples Signed-off-by: ivaylogarnev-limechain <[email protected]> * refactor: Examples pre-release warnings fixes Signed-off-by: ivaylogarnev-limechain <[email protected]> --------- Signed-off-by: ivaylogarnev-limechain <[email protected]> Signed-off-by: ivaylogarnev <[email protected]> Co-authored-by: ivaylonikolov7 <[email protected]>
- Loading branch information