-
Notifications
You must be signed in to change notification settings - Fork 267
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
base: pegin-tests-integration
Are you sure you want to change the base?
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
ea9584e
to
171c569
Compare
db3f6bc
to
e0c0cc6
Compare
171c569
to
3d5d7e9
Compare
rskj-core/src/test/java/co/rsk/peg/RegisterBtcTransactionIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/RegisterBtcTransactionIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/RegisterBtcTransactionIT.java
Outdated
Show resolved
Hide resolved
97f2977
to
e4f10cd
Compare
…ain event was emitted, besides I moved the method to assert an event to BridgeSupportTestUtil
e4f10cd
to
68a0f15
Compare
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.
LGTM
Quality Gate passedIssues Measures |
return federationStorageProvider; | ||
} | ||
co.rsk.core.Coin expectedReceiverBalance = repository.getBalance(rskReceiver); | ||
List<UTXO> expectedFederationUTXOs = federationSupport.getActiveFederationBtcUTXOs(); |
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 just noticed that here you are pointing the reference to the utxos, so you end up asserting
federationSupport.getActiveFederationBtcUTXOs().equals(federationSupport.getActiveFederationBtcUTXOs())
Added RegisterBtcTransactionIT, a new integration tests suit with the test whenRegisterALegacyBtcTransactionTheBridgeShouldRegisterTheNewUtxoAndTransferTheRbtcBalance.