26527 - [SC - Insight] Possible emission of wrong data in cancelTransa...
Previous26521 - [SC - Insight] ChainId is missingNext26529 - [SC - Insight] Mitigate Griefing Attacks Theft of Gas by Impl...
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
function cancelTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) public {
require(msg.sender == admin, "Timelock::cancelTransaction: Call must come from admin.");
bytes32 txHash = keccak256(abi.encode(target, value, signature, data, eta));
+ require(queuedTransactions[txHash], "Timelock::cancelTransaction:Incorrect input or not queued");
queuedTransactions[txHash] = false;
emit CancelTransaction(txHash, target, value, signature, data, eta);
}