Skip to content
Discussion options

You must be logged in to vote

Update

After I ran several console.log statements on VRFCoordinatorV2_5Mock.sol, I ended up at this function, which turned out not to be needed anywhere:

function removeConsumer(
    uint256 _subId,
    address _consumer
) external override onlySubOwner(_subId) onlyValidConsumer(_subId, _consumer) nonReentrant {
    if (!s_consumers[_consumer][_subId].active) {
        revert InvalidConsumer(_subId, _consumer);
    }
    address[] memory consumers = s_subscriptionConfigs[_subId].consumers;
    uint256 lastConsumerIndex = consumers.length - 1;
    for (uint256 i = 0; i < consumers.length; ++i) {
        if (consumers[i] == _consumer) {
            address last = consumers[lastConsumerInde…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@EngrPips
Comment options

@web3pavlou
Comment options

@EngrPips
Comment options

@web3pavlou
Comment options

Answer selected by web3pavlou
@EngrPips
Comment options

@matcherbudz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants