Skip to content

Commit bcb0b84

Browse files
committed
Merge branch 'master' into lib-834-use-governor-address-in-id-hash
2 parents b63d484 + 8b72e20 commit bcb0b84

File tree

23 files changed

+151
-55
lines changed

23 files changed

+151
-55
lines changed

.changeset/afraid-walls-smell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': major
3+
---
4+
5+
`ERC1155Receiver`: Removed in favor of `ERC1155Holder`.

.solhint.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

contracts/access/AccessControl.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pragma solidity ^0.8.19;
55

66
import {IAccessControl} from "./IAccessControl.sol";
77
import {Context} from "../utils/Context.sol";
8-
import {Strings} from "../utils/Strings.sol";
98
import {ERC165} from "../utils/introspection/ERC165.sol";
109

1110
/**

contracts/governance/TimelockController.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pragma solidity ^0.8.19;
66
import {AccessControl} from "../access/AccessControl.sol";
77
import {ERC721Holder} from "../token/ERC721/utils/ERC721Holder.sol";
88
import {ERC1155Holder} from "../token/ERC1155/utils/ERC1155Holder.sol";
9-
import {ERC1155Receiver} from "../token/ERC1155/utils/ERC1155Receiver.sol";
109
import {Address} from "../utils/Address.sol";
1110

1211
/**
@@ -160,7 +159,7 @@ contract TimelockController is AccessControl, ERC721Holder, ERC1155Holder {
160159
*/
161160
function supportsInterface(
162161
bytes4 interfaceId
163-
) public view virtual override(AccessControl, ERC1155Receiver) returns (bool) {
162+
) public view virtual override(AccessControl, ERC1155Holder) returns (bool) {
164163
return super.supportsInterface(interfaceId);
165164
}
166165

contracts/governance/extensions/GovernorTimelockCompound.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pragma solidity ^0.8.19;
55

66
import {IGovernorTimelock} from "./IGovernorTimelock.sol";
77
import {IGovernor, Governor} from "../Governor.sol";
8-
import {SafeCast} from "../../utils/math/SafeCast.sol";
98
import {ICompoundTimelock} from "../../vendor/compound/ICompoundTimelock.sol";
109
import {IERC165} from "../../interfaces/IERC165.sol";
1110
import {Address} from "../../utils/Address.sol";

contracts/mocks/token/ERC20PermitNoRevertMock.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
pragma solidity ^0.8.19;
44

5-
import {ERC20} from "../../token/ERC20/ERC20.sol";
65
import {ERC20Permit} from "../../token/ERC20/extensions/ERC20Permit.sol";
76

87
abstract contract ERC20PermitNoRevertMock is ERC20Permit {

contracts/proxy/transparent/ProxyAdmin.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pragma solidity ^0.8.19;
55

6-
import {ITransparentUpgradeableProxy, TransparentUpgradeableProxy} from "./TransparentUpgradeableProxy.sol";
6+
import {ITransparentUpgradeableProxy} from "./TransparentUpgradeableProxy.sol";
77
import {Ownable} from "../../access/Ownable.sol";
88

99
/**

contracts/proxy/utils/Initializable.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
pragma solidity ^0.8.19;
55

6-
import {Address} from "../../utils/Address.sol";
7-
86
/**
97
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
108
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an

contracts/proxy/utils/UUPSUpgradeable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";
1717
* The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
1818
*/
1919
abstract contract UUPSUpgradeable is IERC1822Proxiable {
20-
/// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
20+
/// @custom:oz-upgrades-unsafe-allow state-variable-immutable
2121
address private immutable __self = address(this);
2222

2323
/**

contracts/token/ERC1155/README.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ NOTE: This core set of contracts is designed to be unopinionated, allowing devel
2626

2727
{{IERC1155Receiver}}
2828

29-
{{ERC1155Receiver}}
30-
3129
== Extensions
3230

3331
{{ERC1155Pausable}}

0 commit comments

Comments
 (0)