0

I have a foundry solidity script for deploying my huff code.

function run() external {
        vm.startBroadcast();

        MyContract(
            HuffDeployer
                .config()
                .deploy("MyContract")
        );

        vm.stopBroadcast();
    }

And when I run this script with forge on a real network:

forge script script/MyContract.s.sol:DeployMyContract --rpc-url ${RINKEBY_RPC_URL}  --private-key ${PRIVATE_KEY} --broadcast 

I get three transactions from my wallet.

Example A Example B Example C

Why?

0

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.