Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/subgraph/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ export function doesSubmitterHavePermission(
let permissionList = cache.getGlobalState().permissionList;
let permissionListEntry = cache.getPermissionListEntry(submitter);

if (permissionRequired == "CorrectLastEpochMessage" && permissionListEntry.permissions.includes("CorrectEpochsMessage")) {
return true; // Workaround for time sensitive hotfix
};

return permissionListEntry.permissions.includes(permissionRequired);
}

Expand Down
5 changes: 5 additions & 0 deletions packages/subgraph/subgraph.template.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
specVersion: 0.0.5
schema:
file: ./schema.graphql
features:
- grafting
graft:
base: QmW26TG5s9myd1gzio9fkgVHEEjZ7u5ktWDpkNePzbusNo
block: 364677000
dataSources:
- kind: ethereum
name: DataEdge
Expand Down
5 changes: 5 additions & 0 deletions packages/subgraph/subgraph.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
specVersion: 0.0.5
schema:
file: ./schema.graphql
features:
- grafting
graft:
base: QmW26TG5s9myd1gzio9fkgVHEEjZ7u5ktWDpkNePzbusNo
block: 364677000
dataSources:
- kind: ethereum
name: DataEdge
Expand Down
Loading
Loading