diff --git a/rskj-core/src/test/java/co/rsk/peg/BridgeSupportReleaseBtcTest.java b/rskj-core/src/test/java/co/rsk/peg/BridgeSupportReleaseBtcTest.java index be18b089d5..0fc3d506b3 100644 --- a/rskj-core/src/test/java/co/rsk/peg/BridgeSupportReleaseBtcTest.java +++ b/rskj-core/src/test/java/co/rsk/peg/BridgeSupportReleaseBtcTest.java @@ -1278,7 +1278,7 @@ void low_amount_release_request_rejected_before_lovell() throws IOException { co.rsk.core.Coin pegoutRequestValue = co.rsk.core.Coin.fromBitcoin(belowPegoutMinimumValue); // Add some extra weis to the value, but less than 1 satoshi. // To ensure that the pegout value is rounded down to fit in satoshis. - co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.valueOf(Denomination.satoshisToWeis(1).longValue()); + co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.fromBitcoin(Coin.SATOSHI); co.rsk.core.Coin extraWeis = oneSatoshiInWeis.subtract(co.rsk.core.Coin.valueOf(1)); pegoutRequestValue = pegoutRequestValue.add(extraWeis); @@ -1374,7 +1374,7 @@ void contract_caller_release_request_rejected_before_lovell() throws IOException co.rsk.core.Coin pegoutRequestValue = co.rsk.core.Coin.fromBitcoin(BRIDGE_CONSTANTS.getMinimumPegoutTxValue()); // Add some extra weis to the value, but less than 1 satoshi. // To ensure that the pegout value is rounded down to fit in satoshis. - co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.valueOf(Denomination.satoshisToWeis(1).longValue()); + co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.fromBitcoin(Coin.SATOSHI); co.rsk.core.Coin extraWeis = oneSatoshiInWeis.subtract(co.rsk.core.Coin.valueOf(1)); pegoutRequestValue = pegoutRequestValue.add(extraWeis); @@ -1421,7 +1421,7 @@ void contract_caller_release_request_rejected_after_lovell() throws IOException co.rsk.core.Coin pegoutRequestValue = co.rsk.core.Coin.fromBitcoin(BRIDGE_CONSTANTS.getMinimumPegoutTxValue()); // Add some extra weis to the value, but less than 1 satoshi. // To ensure that the pegout value is rounded down to fit in satoshis. - co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.valueOf(Denomination.satoshisToWeis(1).longValue()); + co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.fromBitcoin(Coin.SATOSHI); co.rsk.core.Coin extraWeis = oneSatoshiInWeis.subtract(co.rsk.core.Coin.valueOf(1)); pegoutRequestValue = pegoutRequestValue.add(extraWeis); @@ -1479,7 +1479,7 @@ void fee_above_value_release_request_rejected_before_lovell() throws IOException co.rsk.core.Coin pegoutRequestValue = co.rsk.core.Coin.fromBitcoin(pegoutRequestValueWithGapAboveFee); // Add some extra weis to the value, but less than 1 satoshi. // To ensure that the pegout value is rounded down to fit in satoshis. - co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.valueOf(Denomination.satoshisToWeis(1).longValue()); + co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.fromBitcoin(Coin.SATOSHI); co.rsk.core.Coin extraWeis = oneSatoshiInWeis.subtract(co.rsk.core.Coin.valueOf(1)); pegoutRequestValue = pegoutRequestValue.add(extraWeis); @@ -1542,7 +1542,7 @@ void fee_above_value_release_request_rejected_after_lovell() throws IOException co.rsk.core.Coin pegoutRequestValue = co.rsk.core.Coin.fromBitcoin(pegoutRequestValueWithGapAboveFee); // Add some extra weis to the value, but less than 1 satoshi. // To ensure that the pegout value is rounded down to fit in satoshis. - co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.valueOf(Denomination.satoshisToWeis(1).longValue()); + co.rsk.core.Coin oneSatoshiInWeis = co.rsk.core.Coin.fromBitcoin(Coin.SATOSHI); co.rsk.core.Coin extraWeis = oneSatoshiInWeis.subtract(co.rsk.core.Coin.valueOf(1)); pegoutRequestValue = pegoutRequestValue.add(extraWeis);