compound-protocol
compound-protocol copied to clipboard
Add in-queue check for cancelTransaction() in Timelock.sol
trafficstars
Add in-queue check for cancelTransaction() in Timelock.sol :
require(queuedTransactions[txHash], "Timelock::cancelTransaction: Transaction hasn't been queued.");
before deleting the transaction from the queue:
queuedTransactions[txHash] = false;
Link to #214
- Delete import SafeMath, since SafeMath is no longer needed starting with Solidity 0.8.
- Delete keyword "public" in constructor
Add in-queue check for cancelTransaction() in Timelock.sol :
require(queuedTransactions[txHash], "Timelock::cancelTransaction: Transaction hasn't been queued.");before deleting the transaction from the queue:
queuedTransactions[txHash] = false;Link to #214