@@ -97,10 +97,10 @@ contract Governor is MultiRole, Testable {
9797
9898 // Initialize the transaction array.
9999 for (uint256 i = 0 ; i < transactions.length ; i++ ) {
100- require (transactions[i].to != address (0 ), "The to address cannot be 0x0 " );
100+ require (transactions[i].to != address (0 ), "The `to` address cannot be 0x0 " );
101101 // If the transaction has any data with it the recipient must be a contract, not an EOA.
102102 if (transactions[i].data.length > 0 ) {
103- require (transactions[i].to.isContract (), "Only propose transactions on a contract " );
103+ require (transactions[i].to.isContract (), "EOA can't accept tx with data " );
104104 }
105105 proposal.transactions.push (transactions[i]);
106106 }
@@ -132,16 +132,16 @@ contract Governor is MultiRole, Testable {
132132
133133 require (
134134 transactionIndex == 0 || proposal.transactions[transactionIndex.sub (1 )].to == address (0 ),
135- "Previous transaction has not been executed "
135+ "Previous tx not yet executed "
136136 );
137- require (transaction.to != address (0 ), "Transaction has already been executed " );
138- require (price != 0 , "Cannot execute, proposal was voted down " );
139- require (msg .value == transaction.value, "Must send the exact amount of ETH to execute transaction " );
137+ require (transaction.to != address (0 ), "Tx already executed " );
138+ require (price != 0 , "Proposal was rejected " );
139+ require (msg .value == transaction.value, "Must send exact amount of ETH " );
140140
141141 // Delete the transaction before execution to avoid any potential re-entrancy issues.
142142 delete proposal.transactions[transactionIndex];
143143
144- require (_executeCall (transaction.to, transaction.value, transaction.data), "Transaction execution failed " );
144+ require (_executeCall (transaction.to, transaction.value, transaction.data), "Tx execution failed " );
145145
146146 emit ProposalExecuted (id, transactionIndex);
147147 }
0 commit comments