I have this function on my MultiSigWallet
function submitTransaction(address destination, uint value, bytes data)
public
returns (uint transactionId)
{
transactionId = addTransaction(destination, value, data);
confirmTransaction(transactionId);
}
I want to use this to send a transaction to another contract and interface with a function. How do I prepare the data
field ahead of time to make sure it works?
The idea behind this, is I want to have children contracts owned by this MultiSigWallet where I submit transactions to interact with the child contract which need approval by signers of the multisig.