From d9fc4a12cebe198f15f7064ed37ae37b53c27545 Mon Sep 17 00:00:00 2001 From: Jaechang Namgoong Date: Thu, 21 Dec 2023 14:01:56 +0900 Subject: [PATCH] Apply setFeeSharingProportion to BMVs --- .../java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java | 1 + .../foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java | 1 + .../java/foundation/icon/btp/bmv/eth2/BTPMessageVerifier.java | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java b/bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java index d32a19e..4b0e477 100644 --- a/bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java +++ b/bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java @@ -126,6 +126,7 @@ public byte[][] handleRelayMessage(String _bmc, String _prev, BigInteger _seq, b for (MessageEvent msg : msgs) { ret[i++] = msg.getMessage(); } + Context.setFeeSharingProportion(100); return ret; } diff --git a/bmv/btpblock/src/main/java/foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java b/bmv/btpblock/src/main/java/foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java index 87fb319..1572401 100644 --- a/bmv/btpblock/src/main/java/foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java +++ b/bmv/btpblock/src/main/java/foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java @@ -87,6 +87,7 @@ public byte[][] handleRelayMessage(String _bmc, String _prev, BigInteger _seq, b ret[i] = msgList.get(i); } } + Context.setFeeSharingProportion(100); return ret; } diff --git a/bmv/eth2/src/main/java/foundation/icon/btp/bmv/eth2/BTPMessageVerifier.java b/bmv/eth2/src/main/java/foundation/icon/btp/bmv/eth2/BTPMessageVerifier.java index c2a34ac..20434ec 100644 --- a/bmv/eth2/src/main/java/foundation/icon/btp/bmv/eth2/BTPMessageVerifier.java +++ b/bmv/eth2/src/main/java/foundation/icon/btp/bmv/eth2/BTPMessageVerifier.java @@ -106,8 +106,10 @@ public byte[][] handleRelayMessage(String _bmc, String _prev, BigInteger _seq, b } var retSize = msgList.size(); var ret = new byte[retSize][]; - for (int i = 0; i < retSize; i ++) + for (int i = 0; i < retSize; i++) { ret[i] = msgList.get(i); + } + Context.setFeeSharingProportion(100); return ret; }