@rev-net/core-v6 0.0.74 → 0.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/REVDeployer.sol +6 -4
package/package.json
CHANGED
package/src/REVDeployer.sol
CHANGED
|
@@ -668,9 +668,6 @@ contract REVDeployer is ERC2771Context, IREVDeployer, IERC721Receiver {
|
|
|
668
668
|
salt: keccak256(abi.encode(tiered721HookConfiguration.salt, encodedConfigurationHash, _msgSender()))
|
|
669
669
|
});
|
|
670
670
|
|
|
671
|
-
// Scope the hook's permissions to REVOwner, where the operator permissions are granted.
|
|
672
|
-
JBOwnable(address(hook)).transferOwnership(OWNER);
|
|
673
|
-
|
|
674
671
|
// Build the 721 permission additions based on the deployer's `preventOperator*` flags.
|
|
675
672
|
{
|
|
676
673
|
uint256 extraCount;
|
|
@@ -724,7 +721,9 @@ contract REVDeployer is ERC2771Context, IREVDeployer, IERC721Receiver {
|
|
|
724
721
|
}
|
|
725
722
|
}
|
|
726
723
|
|
|
727
|
-
// Set up the allowed posts
|
|
724
|
+
// Set up the allowed posts while this deployer is still the hook owner.
|
|
725
|
+
// `CTPublisher.configurePostingCriteriaFor` checks the hook owner's ADJUST_721_TIERS permission, and the
|
|
726
|
+
// deployer passes that check directly only before ownership is scoped to REVOwner below.
|
|
728
727
|
PUBLISHER.configurePostingCriteriaFor({allowedPosts: formattedAllowedPosts});
|
|
729
728
|
|
|
730
729
|
// Give the croptop publisher permission to post new ERC-721 tiers on the revnet's behalf.
|
|
@@ -733,6 +732,9 @@ contract REVDeployer is ERC2771Context, IREVDeployer, IERC721Receiver {
|
|
|
733
732
|
REVOwnerExtraGrant({operator: address(PUBLISHER), permissionId: JBPermissionIds.ADJUST_721_TIERS});
|
|
734
733
|
}
|
|
735
734
|
|
|
735
|
+
// Scope the hook's permissions to REVOwner, where the operator permissions are granted.
|
|
736
|
+
JBOwnable(address(hook)).transferOwnership(OWNER);
|
|
737
|
+
|
|
736
738
|
// Bind every piece of revnet-scoped state on the owner contract in a single call.
|
|
737
739
|
REVOwner(OWNER).initializeRevnet({revnetId: revnetId, init: ownerInit});
|
|
738
740
|
}
|