Skip to content

Commit

Permalink
Add: motion id to db when motion created
Browse files Browse the repository at this point in the history
  • Loading branch information
willm30 committed Mar 20, 2023
1 parent 2a960ef commit 37323bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/motions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const writeMintTokensMotionToDB = async (
transactionHash,
contractAddress: colonyAddress,
blockNumber,
args: { creator, domainId },
args: { motionId, creator, domainId },
}: ContractEvent,
parsedAction: TransactionDescription,
): Promise<void> => {
Expand All @@ -45,6 +45,9 @@ export const writeMintTokensMotionToDB = async (
colonyId: colonyAddress,
type: motionNameMapping[name],
isMotion: true,
motionData: {
motionId,
},
tokenAddress,
fromDomainId: getDomainDatabaseId(colonyAddress, domainId),
initiatorAddress: creator,
Expand Down

0 comments on commit 37323bb

Please sign in to comment.