Skip to content

Commit

Permalink
Use _grantRole insteadof _setupRole
Browse files Browse the repository at this point in the history
  • Loading branch information
blckngm authored and Flouse committed Sep 25, 2023
1 parent 4efcab8 commit f407f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/apps/20-transfer/ICS20TransferERC20Allowlist.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"
// Source denom is interpreted as ERC20 contract address in hex with the 0x prefix.
contract ICS20TransferERC20Allowlist is ICS20TransferERC20, AccessControl {
constructor(IBCHandler ibcHandler_) ICS20TransferERC20(ibcHandler_) {
_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
_grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
}

function setDenomTokenContract(string calldata denom, ERC20PresetMinterPauser tokenContract) onlyRole(DEFAULT_ADMIN_ROLE) external {
Expand Down

0 comments on commit f407f44

Please sign in to comment.