Skip to content

Commit

Permalink
use calldata instead of memory
Browse files Browse the repository at this point in the history
  • Loading branch information
ququzone committed Mar 25, 2024
1 parent fc5693d commit 1029fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/VotingEscrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ contract VotingEscrow is IVotingEscrow, ReentrancyGuardUpgradeable {
/// @inheritdoc IVotingEscrow
uint256 public tokenId;

function initialize(address[] memory _tokens) public initializer {
function initialize(address[] calldata _tokens) public initializer {
ReentrancyGuardUpgradeable.__ReentrancyGuard_init();

token[address(0)] = block.timestamp;
Expand Down
Loading

0 comments on commit 1029fd9

Please sign in to comment.