Skip to content

Multisig - Add new test-cases for fund transfer Tx#2

Closed
githubckgoh1439 wants to merge 4 commits into
yenkhoon:masterfrom
githubckgoh1439:sdk-multisig-test
Closed

Multisig - Add new test-cases for fund transfer Tx#2
githubckgoh1439 wants to merge 4 commits into
yenkhoon:masterfrom
githubckgoh1439:sdk-multisig-test

Conversation

@githubckgoh1439

Copy link
Copy Markdown

Hi, YK

Added some test-cases for Create-multisig-tx.

@githubckgoh1439

Copy link
Copy Markdown
Author

Create-multisig-Tx - Issue on Re-submit using unique nonce, TxID

Hi, YK

Found some abnormal situations base on above cases
(Refer to case-3 inside test-0700-multisig.ts).

Attached with the examples of DB state query :

Case-1. While query base on group-address, TWO pendingTX found. But I expected is THREE pendingTx. Using the same copy of code.

Case-2. While query base on group-address, only ONE pendingTX found. But I expected is THREE pendingTx. Using the same copy of code.

[postman-sample-1]_get_multisig_acc.txt
[postman-sample-2]_get_multisig_acc.txt

Please check and update.

TQ.

@yenkhoon

yenkhoon commented Apr 1, 2020

Copy link
Copy Markdown
Owner

how many internal transaction u created?

Comment thread src.ts/wallet.ts Outdated
console.log("txtxtxtxxtxtxtxtxtxtx" + JSON.stringify(tx));
if (!tx.nonce || !tx.accountNumber || !tx.value || !tx.value.msg || !Array.isArray(tx.value.msg)) {
if (!tx.nonce) {
errors.throwError('missing transaction field', errors.MISSING_ARGUMENT, { argument: 'value', value: tx });

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hi, YK

The debugger show the Error in here, while come to the process signed by signer-2.

Attached with the compare between signer-1 & signer-2 for their InternalTx signing.

Please check.

Tx_by_signer2.txt

Tx_by_signer1.txt

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This close.

@githubckgoh1439

Copy link
Copy Markdown
Author

Resolved the conflict in multisig.ts

@githubckgoh1439

Copy link
Copy Markdown
Author

Dear all,

Pleace refer to latest of this :
#4

This pull request can be ignored.

yenkhoon pushed a commit that referenced this pull request Apr 30, 2020
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.

2 participants