Skip to content

Commit

Permalink
fix chain id in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ketola committed Sep 27, 2022
1 parent ad96aaa commit 1dc0b4f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 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.DEVNET)
.chainId(ChainId.TESTNET)
.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.DEVNET)
.chainId(ChainId.TESTNET)
.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.DEVNET)
.chainId(ChainId.TESTNET)
.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.DEVNET)
.chainId(ChainId.TESTNET)
.build();

SignedTransaction signedTransaction = ImmutableSignedTransaction.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class MintExample {

public static void main(String[] args) {
AuthenticationKey authenticationKey = AuthenticationKey
.fromHexString("8f30171675008e598af4d57c159dad7240fc2800a33e1790730244ab931630a2");
.fromHexString("71967329878ac3bb3b8e30a0aa389761133b573e1450c9e05c31a9041a6fcc67");

Faucet faucet = Faucet.builder().build();
faucet.mint(authenticationKey, 100L * 1_000_000L, CURRENCY);
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.DEVNET)
.chainId(ChainId.TESTNET)
.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.DEVNET)
.chainId(ChainId.TESTNET)
.build();

Signature signature = Signature.newMultisignature();
Expand Down

0 comments on commit 1dc0b4f

Please sign in to comment.