Commit 5cdc2e6
committed
Use groupSelectionStarterContract to reimburse for failed DKG
In startGroupSelection we return the costs of the previous - failed -
group selection to the service contract. We were obtaining the service
contract reference with `ServiceContract(msg.sender)`. It works fine
only when `msg.sender` is a service contract which is not a case for
genesis. Instead of `msg.sender` we should use
`groupSelectionStarterContract` that is set for this exact purpose in
`genesis` and `createGroup` both calling the internal
`startGroupSelection`.1 parent 3b0d2e4 commit 5cdc2e6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
0 commit comments