Skip to content

Commit 78b1e39

Browse files
authored
Merge pull request #521 from graphprotocol/audit/gns-ownership-n05
Audit: [N05] Unnecessary use of msg.sender
2 parents 237a26d + 66d6e5e commit 78b1e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/discovery/GNS.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ contract GNS is GNSV2Storage, GraphUpgradeable, IGNS, Multicall {
376376

377377
// Pull tokens from sender
378378
address curator = msg.sender;
379-
TokenUtils.pullTokens(graphToken(), msg.sender, _tokensIn);
379+
TokenUtils.pullTokens(graphToken(), curator, _tokensIn);
380380

381381
// Get name signal to mint for tokens deposited
382382
(uint256 vSignal, ) = curation().mint(subgraphData.subgraphDeploymentID, _tokensIn, 0);

0 commit comments

Comments
 (0)