@@ -114,15 +114,15 @@ abstract contract Tournament is ITournament {
114114 /// NON-ROOT TOURNAMENT (level > 0):
115115 /// - Must override this function to return the actual contested final states
116116 /// - These are stored in the tournament's argument struct
117- function _nonRootTournamentArgs ()
118- internal
117+ function nonRootTournamentArgs ()
118+ public
119119 view
120120 virtual
121- returns (ITournament. NonRootArguments memory )
121+ returns (NonRootArguments memory )
122122 {
123123 // Default implementation for root tournaments (level == 0)
124124 // Non-root tournaments (level > 0) must override this
125- return ITournament. NonRootArguments ({
125+ return NonRootArguments ({
126126 contestedCommitmentOne: Tree.ZERO_NODE,
127127 contestedFinalStateOne: Machine.ZERO_STATE,
128128 contestedCommitmentTwo: Tree.ZERO_NODE,
@@ -159,7 +159,7 @@ abstract contract Tournament is ITournament {
159159 // NON-ROOT CASE: level > 0
160160 // Non-root tournaments only accept commitments that match one of the two
161161 // contested final states from the parent match
162- NonRootArguments memory nonRootArgs = _nonRootTournamentArgs ();
162+ NonRootArguments memory nonRootArgs = nonRootTournamentArgs ();
163163 return (
164164 nonRootArgs.contestedFinalStateOne.eq (_finalState)
165165 || nonRootArgs.contestedFinalStateTwo.eq (_finalState),
@@ -170,16 +170,6 @@ abstract contract Tournament is ITournament {
170170
171171 function _totalGasEstimate () internal view virtual returns (uint256 );
172172
173- //
174- // Helper Functions
175- //
176-
177- /// @notice Check if this is a root tournament (level == 0)
178- function _isRootTournament () internal view returns (bool ) {
179- TournamentArguments memory args = tournamentArguments ();
180- return args.level == 0 ;
181- }
182-
183173 //
184174 // Methods
185175 //
@@ -737,7 +727,7 @@ abstract contract Tournament is ITournament {
737727
738728 // Map the winning final state to one of the two contested final states
739729 // from the parent match
740- NonRootArguments memory nonRootArgs = _nonRootTournamentArgs ();
730+ NonRootArguments memory nonRootArgs = nonRootTournamentArgs ();
741731 Machine.Hash _finalState = finalStates[_winner];
742732
743733 if (_finalState.eq (nonRootArgs.contestedFinalStateOne)) {
0 commit comments