Skip to content

Commit

Permalink
Debug Java emulator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Jul 24, 2024
1 parent 3223267 commit c6081f6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.onflow.examples.java;

import com.google.common.io.BaseEncoding;
import org.bouncycastle.util.encoders.Hex;
import org.onflow.flow.sdk.*;
import org.onflow.flow.sdk.cadence.AddressField;
import org.onflow.flow.sdk.cadence.StringField;
Expand Down Expand Up @@ -111,9 +112,7 @@ public FlowAddress createAccount(FlowAddress payerAddress, String publicKeyHex)

FlowTransaction tx = new FlowTransaction(
script,
List.of(
new FlowArgument(new StringField(newAccountPublicKey.getPublicKey().getHex()))
),
List.of(new FlowArgument(new StringField(Hex.toHexString(newAccountPublicKey.getEncoded())))),
getLatestBlockID(),
100L,
new FlowTransactionProposalKey(
Expand Down

0 comments on commit c6081f6

Please sign in to comment.