Skip to content

Commit

Permalink
Add the upgrade version to the upgrade event
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Jan 10, 2024
1 parent 6f130ed commit 7a4531e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type Upgrade @entity {
# End – default data block

impl: Bytes
version: String
type: String
}

Expand Down
1 change: 1 addition & 0 deletions src/ERC1155Mappings/factoryMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export function handle1155FactoryUpgraded(event: Upgraded): void {
upgrade.block = event.block.number;
upgrade.timestamp = event.block.timestamp;
upgrade.impl = event.params.implementation;
upgrade.version = creator.contractVersion()
upgrade.address = event.address;
upgrade.type = "1155Factory";

Expand Down

0 comments on commit 7a4531e

Please sign in to comment.