Skip to content

Commit

Permalink
Renamed interface getTopic to getEventTopic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Feb 25, 2020
1 parent a5d2ec5 commit f61f34b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/abi/src.ts/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Interface {
return hexDataSlice(id(functionFragment.format()), 0, 4);
}

static getTopic(eventFragment: EventFragment): string {
static getEventTopic(eventFragment: EventFragment): string {
return id(eventFragment.format());
}

Expand Down Expand Up @@ -229,7 +229,7 @@ export class Interface {
eventFragment = this.getEvent(eventFragment);
}

return getStatic<(e: EventFragment) => string>(this.constructor, "getTopic")(eventFragment);
return getStatic<(e: EventFragment) => string>(this.constructor, "getEventTopic")(eventFragment);
}


Expand Down

0 comments on commit f61f34b

Please sign in to comment.