Skip to content

Commit f31b65f

Browse files
authored
Merge pull request #524 from graphprotocol/audit/gns-ownership-x02
Audit: [X02] Update event name
2 parents af5f8a5 + 483add1 commit f31b65f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contracts/discovery/GNS.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ contract GNS is GNSV2Storage, GraphUpgradeable, IGNS, Multicall {
8787
/**
8888
* @dev Emitted when a subgraph is created.
8989
*/
90-
event SubgraphCreated(
90+
event SubgraphPublished(
9191
uint256 indexed subgraphID,
9292
bytes32 indexed subgraphDeploymentID,
9393
uint32 reserveRatio
@@ -245,7 +245,7 @@ contract GNS is GNSV2Storage, GraphUpgradeable, IGNS, Multicall {
245245
// This function will check the if tokenId already exists.
246246
_mint(subgraphOwner, subgraphID);
247247

248-
emit SubgraphCreated(subgraphID, _subgraphDeploymentID, defaultReserveRatio);
248+
emit SubgraphPublished(subgraphID, _subgraphDeploymentID, defaultReserveRatio);
249249
emit SubgraphMetadataUpdated(subgraphID, _subgraphMetadata);
250250
emit SubgraphVersionUpdated(subgraphID, _subgraphDeploymentID, _versionMetadata);
251251
}

test/gns.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe('GNS', () => {
155155

156156
// Check events
157157
await expect(tx)
158-
.emit(gns, 'SubgraphCreated')
158+
.emit(gns, 'SubgraphPublished')
159159
.withArgs(subgraphID, newSubgraph.subgraphDeploymentID, DEFAULT_RESERVE_RATIO)
160160
.emit(gns, 'SubgraphMetadataUpdated')
161161
.withArgs(subgraphID, newSubgraph.subgraphMetadata)

0 commit comments

Comments
 (0)