Skip to content

Commit

Permalink
fix b
Browse files Browse the repository at this point in the history
  • Loading branch information
pengpengliu committed Aug 28, 2020
1 parent cbf4a08 commit ff25b35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public String signRawTransaction(String rawTx, List<String> keys) {
RawTransaction tx = RawTransaction.createTransaction(nonce,
gasPrice, gasLimit, to, value, data);

String signedTx = NumericUtil.bytesToHex(TransactionEncoder.signMessage(tx, 222L, Credentials.create(keys.get(0))));
String signedTx = NumericUtil.bytesToHex(TransactionEncoder.signMessage(tx, (byte) 222, Credentials.create(keys.get(0))));

TransactionEncoder.encode(tx);

Expand Down

0 comments on commit ff25b35

Please sign in to comment.