I wrote an ERC20 contract to create a token called Galleons. I then use the IERC20 interface in another contract called Gringotts which is allocated Galleon tokens it can spend on my behalf. Both contracts compile and pass all tests, but then when I changed the Galleons token contract from ERC20 to inherit ERC20PresetMinterPauser instead I am now getting the following warnings which seem to come from EnumerableSet.sol via AccessControlEnumerable.sol (everything still compiles and passes tests but the warnings persist). I'm testing in Truffle using a local Ganache instance
pragma solidity ^0.8.0;
solc version: "0.8.0"
--> @openzeppelin/contracts/utils/structs/EnumerableSet.sol:157:5:
|
157 | function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
| ^ (Relevant source part starts here and spans across multiple lines).
,Warning: Variable is shadowed in inline assembly by an instruction of the same name
--> @openzeppelin/contracts/utils/structs/EnumerableSet.sol:223:5:
|
223 | function add(AddressSet storage set, address value) internal returns (bool) {
| ^ (Relevant source part starts here and spans across multiple lines).
,Warning: Variable is shadowed in inline assembly by an instruction of the same name
--> @openzeppelin/contracts/utils/structs/EnumerableSet.sol:296:5:
|
296 | function add(UintSet storage set, uint256 value) internal returns (bool) {
| ^ (Relevant source part starts here and spans across multiple lines).
,Warning: Variable is shadowed in inline assembly by an instruction of the same name
--> @openzeppelin/contracts/utils/structs/EnumerableSet.sol:157:5:
|
157 | function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
| ^ (Relevant source part starts here and spans across multiple lines).
,Warning: Variable is shadowed in inline assembly by an instruction of the same name
--> @openzeppelin/contracts/utils/structs/EnumerableSet.sol:223:5:
|
223 | function add(AddressSet storage set, address value) internal returns (bool) {
| ^ (Relevant source part starts here and spans across multiple lines).
,Warning: Variable is shadowed in inline assembly by an instruction of the same name
--> @openzeppelin/contracts/utils/structs/EnumerableSet.sol:296:5:
|
296 | function add(UintSet storage set, uint256 value) internal returns (bool) {
| ^ (Relevant source part starts here and spans across multiple lines).```