Skip to content

Commit

Permalink
Update decodeNeoVmInputData
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Apr 3, 2024
1 parent 21a2047 commit 6b53296
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,11 @@ private Map<String, Object> decodeDataByType(String type, String arg, boolean is
} else {
byte[] bytes = com.github.ontio.common.Helper.BigIntToNeoBytes(number);
rawData = com.github.ontio.common.Helper.toHexString(bytes);
int byteLength = Integer.parseInt(arg.substring(0, 2));
int rawDataByteLength = rawData.length() / 2;
for (int i = rawDataByteLength; i < byteLength; i++) {
rawData = rawData + "00";
}
}
break;
case "ByteArray":
Expand Down

0 comments on commit 6b53296

Please sign in to comment.