Skip to content

Commit

Permalink
Replace _setupRole with _grantRole because this function has been dep…
Browse files Browse the repository at this point in the history
…recated
  • Loading branch information
mattiascaricato committed Jun 8, 2023
1 parent d548aa6 commit 45a85a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/USDM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ contract USDM is
__UUPSUpgradeable_init();
__EIP712_init(name_, "1");

_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
_grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
_mint(_msgSender(), initialSupply);
}

Expand Down

0 comments on commit 45a85a3

Please sign in to comment.