Skip to content

Commit

Permalink
fix(config): fix config for examples and integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ketola committed Mar 9, 2022
1 parent 17704bb commit 0d0acb5
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static void main(String[] args) throws Exception {
.addArguments(childAccountArgument, authKeyPrefixArgument, createAllCurrenciesArgument,
initialBalanceArgument)
.build())
.chainId(ChainId.TESTNET)
.chainId(ChainId.DEVNET)
.build();

SignedTransaction signedTransaction = ImmutableSignedTransaction.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private static void transferFromVaspToVasp(DiemClient client, KeyPair sourceKeyP
.typeArguments(asList(Struct.typeTagForCurrency(CURRENCY)))
.addArguments(addressArgument, amountArgument, metadataArgument, signatureArgument)
.build())
.chainId(ChainId.TESTNET)
.chainId(ChainId.DEVNET)
.build();

Signature signature = Signature.signTransaction(transaction, sourceKeyPair.getPrivate());
Expand Down Expand Up @@ -184,7 +184,7 @@ private static void rotateDualAttestationInfoForVaspAccount(DiemClient client, K
.code(Move.rotateDualAttestationInfo())
.addArguments(newUrlArgument, compliancePublicKey)
.build())
.chainId(ChainId.TESTNET)
.chainId(ChainId.DEVNET)
.build();

Signature signature = Signature.signTransaction(transaction, parentVaspKeyPair.getPrivate());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private static void rotateAuthenticationKey(BCEdDSAPrivateKey privateKey,
.code(Move.rotateAuthenticationKey())
.addArguments(newAuthenticationKeyArgument)
.build())
.chainId(ChainId.TESTNET)
.chainId(ChainId.DEVNET)
.build();

SignedTransaction signedTransaction = ImmutableSignedTransaction.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static void main(String[] args) {
faucet.mint(authenticationKey, 100L * 1_000_000L, CURRENCY);

DiemClient client = DiemClient.builder()
.withUrl("https://testnet.diem.com/v1")
.withUrl("http://testnet.diem.com/v1")
.build();

Wait.until(accountHasPositiveBalance(AccountAddress.fromAuthenticationKey(authenticationKey), client));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static void main(String[] args) {
.addArguments(addressArgument, amountArgument, metadataArgument,
signatureArgument)
.build())
.chainId(ChainId.TESTNET)
.chainId(ChainId.DEVNET)
.build();

SignedTransaction signedTransaction = ImmutableSignedTransaction.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static void main(String[] args) throws Exception {
.typeArguments(asList(Struct.typeTagForCurrency(CURRENCY)))
.addArguments(addressArgument, amountArgument, metadataArgument, signatureArgument)
.build())
.chainId(ChainId.TESTNET)
.chainId(ChainId.DEVNET)
.build();

Signature signature = Signature.newMultisignature();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class BatchRequestIntegrationTest {
public void setUp() {
Security.addProvider(new BouncyCastleProvider());
client = DiemClient.builder()
.withUrl("https://testnet.diem.com/v1")
.withUrl("http://testnet.diem.com/v1")
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class MultisigTransactionTest {
public void setUp() {
Security.addProvider(new BouncyCastleProvider());
client = DiemClient.builder()
.withUrl("https://testnet.diem.com/v1")
.withUrl("http://testnet.diem.com/v1")
.build();
}

Expand Down Expand Up @@ -113,7 +113,7 @@ public void testMultisigTransaction() {
.typeArguments(asList(Struct.typeTagForCurrency(CURRENCY)))
.addArguments(addressArgument, amountArgument, metadataArgument, signatureArgument)
.build())
.chainId(ChainId.TESTNET)
.chainId(ChainId.DEVNET)
.build();

Signature signature = createSignature(keyPairs, transaction);
Expand Down Expand Up @@ -184,7 +184,7 @@ private void createChildVaspAccount(List<KeyPair> keyPairs, KeyPair childVaspAcc
.addArguments(childAccountArgument, authKeyPrefixArgument, createAllCurrenciesArgument,
initialBalanceArgument)
.build())
.chainId(ChainId.TESTNET)
.chainId(ChainId.DEVNET)
.build();

Signature signature = createSignature(keyPairs, transaction);
Expand Down

0 comments on commit 0d0acb5

Please sign in to comment.