Skip to content

Commit

Permalink
Merge pull request #521 from graphprotocol/audit/gns-ownership-n05
Browse files Browse the repository at this point in the history
Audit: [N05] Unnecessary use of msg.sender
  • Loading branch information
abarmat authored Dec 1, 2021
2 parents 237a26d + 66d6e5e commit 78b1e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/discovery/GNS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ contract GNS is GNSV2Storage, GraphUpgradeable, IGNS, Multicall {

// Pull tokens from sender
address curator = msg.sender;
TokenUtils.pullTokens(graphToken(), msg.sender, _tokensIn);
TokenUtils.pullTokens(graphToken(), curator, _tokensIn);

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

0 comments on commit 78b1e39

Please sign in to comment.