Skip to content

Commit

Permalink
fix: deposit tx type
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkAfCod authored and GrapeBaBa committed Nov 14, 2023
1 parent c8a9ede commit 8e61e9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class TxDecoder {

public static DepositTransaction decodeToDeposit(final String hexTransaction) {
final byte[] transaction = Numeric.hexStringToByteArray(hexTransaction);
if (transaction.length > 0 && transaction[0] != ((byte) 0x01)) {
if (transaction.length > 0 && transaction[0] != ((byte) 0x7E)) {
throw new RuntimeException("tx is not type of deposit tx");
}
final byte[] encodedTx = Arrays.copyOfRange(transaction, 1, transaction.length);
Expand Down

0 comments on commit 8e61e9a

Please sign in to comment.