Skip to content

Commit 237a26d

Browse files
authored
Merge pull request #520 from graphprotocol/audit/gns-ownership-n03
Audit: [N03] Typographical and grammatical errors
2 parents 396d06b + 6ec4065 commit 237a26d

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
@@ -203,7 +203,7 @@ contract GNS is GNSV2Storage, GraphUpgradeable, IGNS, Multicall {
203203
bytes32 _nameIdentifier,
204204
string calldata _name
205205
) external override {
206-
require(_graphAccount == msg.sender, "GNS: Only can set your own name");
206+
require(_graphAccount == msg.sender, "GNS: Only you can set your name");
207207
emit SetDefaultName(_graphAccount, _nameSystem, _nameIdentifier, _name);
208208
}
209209

@@ -297,7 +297,7 @@ contract GNS is GNSV2Storage, GraphUpgradeable, IGNS, Multicall {
297297
);
298298

299299
// Take the owner cut of the curation tax, add it to the total
300-
// Upgrade is only callable by the owner, we asume then that msg.sender = owner
300+
// Upgrade is only callable by the owner, we assume then that msg.sender = owner
301301
address subgraphOwner = msg.sender;
302302
uint256 tokensWithTax = _chargeOwnerTax(
303303
tokens,

test/gns.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ describe('GNS', () => {
548548
const tx = gns
549549
.connect(other.signer)
550550
.setDefaultName(me.address, 0, defaultName.nameIdentifier, defaultName.name)
551-
await expect(tx).revertedWith('GNS: Only can set your own name')
551+
await expect(tx).revertedWith('GNS: Only you can set your name')
552552
})
553553
})
554554

0 commit comments

Comments
 (0)