Skip to content

Commit 69cfc37

Browse files
committed
Use SolidityType enum for new methods definition
1 parent 2b45ef6 commit 69cfc37

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

rskj-core/src/main/java/co/rsk/peg/BridgeMethods.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.ethereum.config.blockchain.upgrades.ActivationConfig;
3333
import org.ethereum.core.CallTransaction;
3434
import org.ethereum.db.ByteArrayWrapper;
35+
import org.ethereum.solidity.SolidityType;
3536
import org.ethereum.vm.MessageCall.MsgType;
3637

3738
/**
@@ -921,7 +922,7 @@ public enum BridgeMethods {
921922
CallTransaction.Function.fromSignature(
922923
"getSuperEvent",
923924
new String[]{},
924-
new String[]{"bytes"}
925+
new String[]{BYTES}
925926
),
926927
fixedCost(3_000L), // TODO define final cost
927928
(BridgeMethodExecutorTyped<byte[]>) Bridge::getSuperEvent,
@@ -932,7 +933,7 @@ public enum BridgeMethods {
932933
SET_SUPER_EVENT(
933934
CallTransaction.Function.fromSignature(
934935
"setSuperEvent",
935-
new String[]{"bytes"},
936+
new String[]{BYTES},
936937
new String[]{}
937938
),
938939
fixedCost(8_000L), // TODO define final cost
@@ -955,7 +956,7 @@ public enum BridgeMethods {
955956
CallTransaction.Function.fromSignature(
956957
"getBaseEvent",
957958
new String[]{},
958-
new String[]{"bytes"}
959+
new String[]{BYTES}
959960
),
960961
fixedCost(3_000L), // TODO define final cost
961962
(BridgeMethodExecutorTyped<byte[]>) Bridge::getBaseEvent,
@@ -966,7 +967,7 @@ public enum BridgeMethods {
966967
SET_BASE_EVENT(
967968
CallTransaction.Function.fromSignature(
968969
"setBaseEvent",
969-
new String[]{"bytes"},
970+
new String[]{BYTES},
970971
new String[]{}
971972
),
972973
fixedCost(8_000L), // TODO define final cost

0 commit comments

Comments
 (0)