0

A big newbie into solidity here. I’ve managed to compile and deploy (with truffle) a ContractFactory from OpenSea repository. Long story short the part with the deployment is this

if (DEPLOY_CREATURES_SALE) {
    await deployer.deploy(CreatureFactory, proxyRegistryAddress, Creature.address, {gas: 7000000});
    const creature = await Creature.deployed();
    await creature.transferOwnership(CreatureFactory.address);
  }

I would like to use a user interface that on click it will deploy this contract, based on the connected wallet on that page with web3js. Is it possible? Or do I have to compile it every time for a new wallet?

This is all because, if you want to mint a token you need to own the contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.