From 6b53296e84386fa1795ab9a4d782bf6001a13f2b Mon Sep 17 00:00:00 2001 From: leej1012 Date: Wed, 3 Apr 2024 18:50:41 +0800 Subject: [PATCH] Update decodeNeoVmInputData --- .../github/ontio/service/impl/TransactionServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/TransactionServiceImpl.java b/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/TransactionServiceImpl.java index f517d7e0..42c6b831 100644 --- a/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/TransactionServiceImpl.java +++ b/back-end-projects/Explorer/src/main/java/com/github/ontio/service/impl/TransactionServiceImpl.java @@ -545,6 +545,11 @@ private Map 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":