Skip to content
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

Register twice the same transaction, the second time should not modify any state #2893

Open
wants to merge 14 commits into
base: pegin-tests-integration
Choose a base branch
from

Conversation

julianlen
Copy link
Contributor

Added RegisterBtcTransactionIT, a new integration tests suit with the test whenRegisterALegacyBtcTransactionTheBridgeShouldRegisterTheNewUtxoAndTransferTheRbtcBalance.

Copy link

github-actions bot commented Dec 13, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@julianlen julianlen changed the base branch from pegin-tests-integration to pegin-it-initialTest December 13, 2024 18:30
Base automatically changed from pegin-it-initialTest to pegin-tests-integration December 16, 2024 18:49
@julianlen julianlen force-pushed the pegin-tests-integration branch from db3f6bc to e0c0cc6 Compare December 16, 2024 19:29
@julianlen julianlen marked this pull request as ready for review December 17, 2024 12:32
@julianlen julianlen requested a review from a team as a code owner December 17, 2024 12:32
…ain event was emitted, besides I moved the method to assert an event to BridgeSupportTestUtil
Copy link
Contributor

@apancorb apancorb left a comment

Choose a reason for hiding this comment

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

LGTM

return federationStorageProvider;
}
co.rsk.core.Coin expectedReceiverBalance = repository.getBalance(rskReceiver);
List<UTXO> expectedFederationUTXOs = federationSupport.getActiveFederationBtcUTXOs();
Copy link
Contributor

Choose a reason for hiding this comment

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

i just noticed that here you are pointing the reference to the utxos, so you end up asserting
federationSupport.getActiveFederationBtcUTXOs().equals(federationSupport.getActiveFederationBtcUTXOs())

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.

3 participants