From 66dcf810407d459c193daffddb2513198bf496af Mon Sep 17 00:00:00 2001 From: Hayarobi Park Date: Fri, 3 Jan 2025 16:32:05 +0900 Subject: [PATCH] Changed aergo protobuf to recent version. (#18) - MULTICALL - sourceHash(deploy contract of Hardfork V4) - internal operations --- core/common/src/main/java/hera/api/model/Transaction.java | 3 ++- core/protobuf/src/main | 2 +- .../java/hera/transport/TransactionTypeConverterFactory.java | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/common/src/main/java/hera/api/model/Transaction.java b/core/common/src/main/java/hera/api/model/Transaction.java index fee0455d..42294e17 100644 --- a/core/common/src/main/java/hera/api/model/Transaction.java +++ b/core/common/src/main/java/hera/api/model/Transaction.java @@ -55,7 +55,8 @@ public enum TxType { FEE_DELEGATION(3), TRANSFER(4), CALL(5), - DEPLOY(6); + DEPLOY(6), + MULTICALL(7); @Getter private final int intValue; diff --git a/core/protobuf/src/main b/core/protobuf/src/main index 0c3579cd..70eae434 160000 --- a/core/protobuf/src/main +++ b/core/protobuf/src/main @@ -1 +1 @@ -Subproject commit 0c3579cd42f830eb787715a78895d971b8ee5fce +Subproject commit 70eae4345ecbff37f3b0529f4fb69d3e5d911223 diff --git a/core/transport/src/main/java/hera/transport/TransactionTypeConverterFactory.java b/core/transport/src/main/java/hera/transport/TransactionTypeConverterFactory.java index 5f46e217..661efa47 100644 --- a/core/transport/src/main/java/hera/transport/TransactionTypeConverterFactory.java +++ b/core/transport/src/main/java/hera/transport/TransactionTypeConverterFactory.java @@ -41,6 +41,8 @@ public Blockchain.TxType apply(final Transaction.TxType domainTxType) { return Blockchain.TxType.CALL; case DEPLOY: return Blockchain.TxType.DEPLOY; + case MULTICALL: + return Blockchain.TxType.MULTICALL; default: return Blockchain.TxType.UNRECOGNIZED; } @@ -68,6 +70,8 @@ public TxType apply(Blockchain.TxType rpcTxType) { return Transaction.TxType.CALL; case DEPLOY: return Transaction.TxType.DEPLOY; + case MULTICALL: + return Transaction.TxType.MULTICALL; default: return Transaction.TxType.UNRECOGNIZED; }