Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-zack committed Aug 14, 2024
1 parent 599b8d8 commit 2d69dce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rskj-core/src/test/java/co/rsk/peg/BridgeSupportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ private void assertPegoutActionsWerePerformed() throws IOException {

assertSvpTxSigHashWasSaved();

assertLogReleaseRequested(bridgeMainNetConstants.getSpendableValueFromProposedFederation());
assertLogReleaseRequested();

assertLogPegoutTransactionCreated();
}
Expand Down Expand Up @@ -725,9 +725,10 @@ private void assertSvpTxSigHashWasSaved() {
assertTrue(bridgeStorageProvider.hasPegoutTxSigHash(svpFunTransactionUnsignedSigHash));
}

private void assertLogReleaseRequested(Coin requestedPegoutAmount) {
private void assertLogReleaseRequested() {
List<DataWord> encodedTopics = getEncodedTopics(releaseRequestedEvent, rskTxHash.getBytes(), svpFundTransactionHashUnsigned.getBytes());

Coin requestedPegoutAmount = bridgeMainNetConstants.getSpendableValueFromProposedFederation();
byte[] encodedData = getEncodedData(releaseRequestedEvent, requestedPegoutAmount.getValue());

assertEventWasEmittedWithExpectedTopics(encodedTopics);
Expand Down

0 comments on commit 2d69dce

Please sign in to comment.