mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Fix NetworkParameters.fromID( incorrect-arg -> correct-arg )
This commit is contained in:
parent
2559ba2203
commit
1ea445b1e5
@ -25,8 +25,8 @@ import static bisq.apitest.method.wallet.WalletTestUtil.BOBS_INITIAL_BSQ_BALANCE
|
||||
import static bisq.apitest.method.wallet.WalletTestUtil.bsqBalanceModel;
|
||||
import static bisq.apitest.method.wallet.WalletTestUtil.verifyBsqBalances;
|
||||
import static bisq.cli.TableFormat.formatBsqBalanceInfoTbl;
|
||||
import static org.bitcoinj.core.NetworkParameters.ID_REGTEST;
|
||||
import static org.bitcoinj.core.NetworkParameters.PAYMENT_PROTOCOL_ID_REGTEST;
|
||||
import static org.bitcoinj.core.NetworkParameters.PAYMENT_PROTOCOL_ID_TESTNET;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
|
||||
@ -61,11 +61,10 @@ public class BsqWalletTest extends MethodTest {
|
||||
String addressString = aliceClient.getUnusedBsqAddress();
|
||||
assertFalse(addressString.isEmpty());
|
||||
assertTrue(addressString.startsWith("B"));
|
||||
Address address = Address.fromString(NetworkParameters.fromID(PAYMENT_PROTOCOL_ID_REGTEST), addressString.substring(1));
|
||||
Address address = Address.fromString(NetworkParameters.fromID(ID_REGTEST), addressString.substring(1));
|
||||
NetworkParameters networkParameters = address.getParameters();
|
||||
String addressNetwork = networkParameters.getPaymentProtocolId();
|
||||
log.warn("TODO Fix bug causing the regtest bsq address network being set to 'testnet'.");
|
||||
assertTrue(addressNetwork.equals(PAYMENT_PROTOCOL_ID_TESTNET));
|
||||
assertTrue(addressNetwork.equals(PAYMENT_PROTOCOL_ID_REGTEST));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user