Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed Aug 30, 2023
1 parent fd92edd commit e0fd41d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions subgraph/src/ids/dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import {Address} from '@graphprotocol/graph-ts';
/**
* Generates the DAO's ID using its address in hexadecimal format.
*
* @param daoAddress - The address of the DAO.
* @param dao - The address of the DAO.
* @returns A hexadecimal string representation of the provided DAO address.
*/
export function getDaoId(daoAddress: Address): string {
return daoAddress.toHexString();
export function getDaoId(dao: Address): string {
return dao.toHexString();
}

// TODO: this is not complete, it will be done in it's own task.

0 comments on commit e0fd41d

Please sign in to comment.