Skip to content

refactor: signAndSend sdk functions and ECDSA MPCv2 utils#216

Open
danielpeng1 wants to merge 1 commit into
masterfrom
WAL-1489/signing-tests
Open

refactor: signAndSend sdk functions and ECDSA MPCv2 utils#216
danielpeng1 wants to merge 1 commit into
masterfrom
WAL-1489/signing-tests

Conversation

@danielpeng1
Copy link
Copy Markdown
Contributor

Dropping stubs from signAndSendTxRequest.test.ts to use real SDK signing paths.

  • Added ECDSA MPCv2 test helpers in testUtils.ts.
  • Updated ecdsa.test.ts and sendMany.test.ts (and signAndSendTxRequest.test.ts) to use these helpers.

Ticket: WAL-1489

@danielpeng1 danielpeng1 self-assigned this Jun 1, 2026
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 1, 2026

WAL-1489

Copy link
Copy Markdown
Contributor

@pranishnepal pranishnepal left a comment

Choose a reason for hiding this comment

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

some minor comments, lmk what u think

sinon.assert.calledOnce(signAndSendStub);

sinon.restore();
nocks.sendTxNock.done();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we need to validate individual rounds here too?

coin: 'hteth',
});
function nockWalletAndSigningKeychain(coinName: string) {
nock(bitgoApiUrl)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we can return the two nocks as objects like:

return { walletNock, keychainNock };

then at call site, we can invoke .done()

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