/// @dev Adds a new transaction to the transaction mapping, if transaction does not exist yet.
/// @param destination Transaction target address.
/// @param value Transaction ether value.
/// @param data Transaction data payload.
/// @return Returns transaction ID.
function addTransaction(address destination, uint value, bytes data)
internal
returns (uint transactionId)
{
transactionId = transactionCount;
transactions[transactionId] = Transaction({
destination: destination,
value: value,
data: data,
executed: false
});
transactionCount += 1;
Submission(transactionId);
}
In In function addTransaction(address destination, uint value, bytes data)
With underlined the byte data parameter
Best Answer
As of Solidity 0.5.0. https://solidity.readthedocs.io/en/v0.5.0/050-breaking-changes.html
You can fix it by saying
memory
for thebytes
argument which is an array ofbyte
.Warnings are safe to ignore. I wanted to keep this example as close as possible to the original and confirm it compiles.