@reality.eth/contracts 4.0.0-rc.7 → 4.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,7 +34,7 @@ abstract contract RealityETHCore_Common is IRealityETHCore_Common, IRealityETHHi
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
// noop modifer provided for the convenience of inheriter contracts that want to lock down question asking
|
|
37
|
-
modifier
|
|
37
|
+
modifier onlyPermittedQuestioner() virtual {
|
|
38
38
|
_;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -136,7 +136,7 @@ abstract contract RealityETHCore_Common is IRealityETHCore_Common, IRealityETHHi
|
|
|
136
136
|
uint32 opening_ts,
|
|
137
137
|
uint256 min_bond,
|
|
138
138
|
uint256 tokens
|
|
139
|
-
) internal stateNotCreated(question_id) notFrozen
|
|
139
|
+
) internal stateNotCreated(question_id) notFrozen onlyPermittedQuestioner {
|
|
140
140
|
// A timeout of 0 makes no sense, and we will use this to check existence
|
|
141
141
|
if (timeout == 0) revert TimeoutMustBePositive();
|
|
142
142
|
if (timeout >= 365 days) revert TimeoutMustBeLessThan365Days();
|
package/package.json
CHANGED