-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adds migrate utxos test #206
base: add-register-svp-spend-tx-test
Are you sure you want to change the base?
Adds migrate utxos test #206
Conversation
cf73641
to
9685358
Compare
6287d0b
to
2763721
Compare
9685358
to
8bfe343
Compare
Quality Gate passedIssues Measures |
const migrationReleaseBtcTxInputsTxHashes = migrationReleaseBtcTransaction.ins.map(input => input.hash.reverse().toString('hex')); | ||
const svpSpendTxUtxoHashesNotPresentInTheBridgeStateBeforeActivation = findSvpSpendTxUtxoHashNotPresentInTheBridgeStateBeforeActivation(bridgeStateBeforeActivation.activeFederationUtxos, migrationReleaseBtcTxInputsTxHashes); | ||
expect(svpSpendTxUtxoHashesNotPresentInTheBridgeStateBeforeActivation.length).to.be.equal(1, 'There should be one missing hash, the utxo that was sent to the Proposed federation in the SVP Spend transaction.'); | ||
const actualSvpSpendTxHash = svpSpendTxUtxoHashesNotPresentInTheBridgeStateBeforeActivation[0]; | ||
expect(actualSvpSpendTxHash).to.be.equal(svpSpendBtcTransaction.getId(), 'The missing hash should be the SVP Spend transaction hash.'); |
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.
can't you just search for the svpSpendBtcTransactionHash
in the migrationReleaseBtcTxInputsTxHashes
?
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.
I renamed some of these variables. Also, what I usually do is connect everything in multiple ways to ensure they all connect.
In this section, I'm not only making sure the "svpSpendBtcTransactionHash" is in the migration transaction (indirectly), but I'm also making sure all the utxos that were in the Bridge are in the migration transaction as well.
Check now.
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.
did you change anything?
No description provided.