1

It's not madness. On-chain deployment patterns are one way to establish trust between separate contracts. But, you are running into a classic problem. When a contract A deploys another contract B, the bytecode for contract B gets rolled up into the bytecode for contract A. This is so contract A knows what to do. Reducing the size of the deployed contract is ...


1

First, I am not an expert on this and you can very well see me as a beginner. This upfront cost is gas price * gas you are sending which is set in your config. This does not necessarily match the real cost. What is important is how much gas your deployment will cost. The rest of the gas sent will not be used. In your case, you are willing to pay: ...


1

My syntax seems to be ok The compiler thinks otherwise :-) You're missing some brackets ( ) around the curly braces... (bool success) = address(parentContract).call({value: msg.value})(abi.encodeWithSignature("triggerPayment(uint256)", index));


Only top voted, non community-wiki answers of a minimum length are eligible