Skip to content

Commit 7f242a0

Browse files
Merge branch 'main' of github.com:stackrlabs/unification-league-mru into feat/checks
2 parents 5d8d980 + a5f9ff6 commit 7f242a0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/stackr/state.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class League extends State<LeagueState> {
5858
getRootHash(): string {
5959
const { admins, teams, players, matches, meta, logs } = this.state;
6060
const adminsMerkleTree = createMT(admins, (a) =>
61-
solidityPacked(["string"], [a])
61+
solidityPacked(["address"], [a])
6262
);
6363

6464
const teamsMerkleTree = createMT(teams, (t) =>

src/stackr/transitions.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ export const canAddressSubmitAction = (
3535
state: LeagueState,
3636
address: string
3737
): boolean => {
38-
// TODO: Implement this
39-
// return state.admins.includes(address);
40-
return true;
38+
return state.admins.includes(address);
4139
};
4240

4341
const areAllMatchesComplete = (state: LeagueState) => {

0 commit comments

Comments
 (0)