Commit 11435dd
committed
fix(tokamak-deployer): pass DGF proxy address to AnchorStateRegistry constructor
AnchorStateRegistry constructor takes the DisputeGameFactory address as
an immutable. The code was incorrectly passing the DGF implementation
address (disputeGameFactoryImplAddr) instead of the proxy address
(disputeGameFactoryProxyAddr).
Since all game state is stored in the proxy via delegatecall, calling
DISPUTE_GAME_FACTORY.games() on the implementation always returns
address(0). This caused tryUpdateAnchorState() to revert with
UnregisteredGame(), which in turn made FaultDisputeGame.resolve()
always revert — preventing any game from ever reaching DEFENDER_WINS.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent af05271 commit 11435dd
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
| 566 | + | |
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
| 572 | + | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| |||
0 commit comments