You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,16 +46,16 @@ contract ForeignGatewayOnGnosis is IForeignGateway {
47
46
// ************************************* //
48
47
49
48
uint256public constant DEFAULT_NB_OF_JURORS =3; // The default number of jurors in a dispute.
50
-
IERC20publicimmutable weth; // WETH token on xDai.
51
49
uint256internal localDisputeID =1; // The disputeID must start from 1 as the KlerosV1 proxy governor depends on this implementation. We now also depend on localDisputeID not ever being zero.
52
50
mapping(uint96=>uint256) public feeForJuror; // feeForJuror[courtID], it mirrors the value on KlerosCore.
53
51
addresspublic governor;
54
52
addresspublic veaOutbox;
55
-
uint256publicimmutablesenderChainID;
56
-
addresspublicoverridesenderGateway;
53
+
uint256publicimmutableoverride homeChainID;
54
+
addresspublicoverridehomeGateway;
57
55
addresspublic deprecatedVeaOutbox;
58
56
uint256public deprecatedVeaOutboxExpiration;
59
57
mapping(bytes32=> DisputeData) public disputeHashtoDisputeData;
58
+
IERC20publicimmutable weth; // WETH token on xDai.
60
59
61
60
// ************************************* //
62
61
// * Function Modifiers * //
@@ -68,7 +67,7 @@ contract ForeignGatewayOnGnosis is IForeignGateway {
require(governor ==msg.sender, "Access not allowed: Governor only.");
85
-
receiverGateway=_receiverGateway;
89
+
foreignGateway=_foreignGateway;
86
90
}
87
91
88
92
// ************************************* //
89
93
// * State Modifiers * //
90
94
// ************************************* //
91
95
92
-
/// @dev Provide the same parameters as on the foreignChain while creating a dispute. Providing incorrect parameters will create a different hash than on the foreignChain and will not affect the actual dispute/arbitrable's ruling.
93
-
/// @param _foreignChainID foreignChainId
94
-
/// @param _foreignBlockHash foreignBlockHash
95
-
/// @param _foreignDisputeID foreignDisputeID
96
-
/// @param _choices number of ruling choices
97
-
/// @param _extraData extraData
98
-
/// @param _arbitrable arbitrable
96
+
/// @inheritdoc IHomeGateway
99
97
function relayCreateDispute(
100
98
uint256_foreignChainID,
101
99
bytes32_foreignBlockHash,
@@ -115,6 +113,8 @@ contract HomeGateway is IHomeGateway {
115
113
_arbitrable
116
114
)
117
115
);
116
+
require(_foreignChainID == foreignChainID, "Foreign chain ID not supported");
0 commit comments