Skip to content

Commit

Permalink
fix: reference route id
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Oct 15, 2024
1 parent 7b539d8 commit 81ee4b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions subgraphs/cross-chain-governance/src/operations/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ReceivePayloadFailed,
} from '../../generated/OmnichainGovernanceExecutor/OmnichainGovernanceExecutor';
import { FailedPayload, Proposal } from '../../generated/schema';
import { indexProposalTypeConstant } from '../constants';
import { getFailedPayloadId, getProposalId } from '../utilities/ids';

export const createProposal = (event: ProposalReceived): Proposal => {
Expand All @@ -20,7 +19,7 @@ export const createProposal = (event: ProposalReceived): Proposal => {
proposal.signatures = event.params.signatures;
proposal.calldatas = event.params.calldatas;

proposal.route = indexProposalTypeConstant[event.params.proposalType];
proposal.route = event.params.proposalType.toString();
proposal.save();
return proposal;
};
Expand Down

0 comments on commit 81ee4b7

Please sign in to comment.