KittyBridge::gasLimit
in KittyBridge::updateGaslimit
FunctionDescription: The KittyBridge::updateGaslimit
function is designed to update the gasLimit
storage variable within the NFT bridge protocol. However, it appears that there is no event emission when this variable is changed.
Impact: This omission can make it difficult for external observers, such as front-end applications or other smart contracts, to track changes to the gas limit, which is crucial for monitoring and debugging purposes.
Proof of Concept:
Recommended Mitigation: To mitigate this issue, an event should be emitted whenever the gasLimit
variable is changed within the updateGaslimit
function. This event should include the new gas limit value, allowing external observers to easily track changes to the gas limit.
Here's an example of how you might define and emit an event for this purpose within the updateGaslimit
function:
Add event declaration to KittyBridgeBase.sol
:
Emit event in updateGaslimit
function:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.