How to allow users of your contract to call functions to another contract using your wallet address?

Viewed 10

I need to allow users of my contract to send one specific function to another contract, however with my wallet address. Here is what I mean:

    function createClone(address _whoopyCreator) payable external returns(address instance) {
        instance = Clones.clone(implementationContract);
        IImplementationinterface(instance).initialize(_whoopyCreator);
        whoopyList[_whoopyCreator].push(instance);
        emit NewClone(instance);

        //add VRF Consumer 
        i_vrfCoordinator.addConsumer(_subscriptionId, instance);
        emit NewConsumerAdded(instance);

        return instance;
    }

The 'addConsumer' function can only be called by the owner of the VRF subscription (which is me), so I'd like only that particular transaction to be sent by my address.

Any help would be appreciated! Thanks!

0 Answers
Related