You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gas Limit exceeded due to Unbounded Array in HatsSignerGate::_removeSigner
Summary
Iterating over an unbounded array in the HatsSignerGate::_removeSigner function can cause the function to fail.
Root Cause
The HatsSignerGate::_removeSigner function calls SafeManagerLib::findPrevOwner to identify the previous signer of the signer to be removed. However, the _owners array parameter is unbounded. If the array is too large, this iteration may exceed the gas limit, causing the transaction to revert.
Elegant Carbon Nightingale
Medium
Gas Limit exceeded due to Unbounded Array in HatsSignerGate::_removeSigner
Summary
Iterating over an unbounded array in the
HatsSignerGate::_removeSigner
function can cause the function to fail.Root Cause
The
HatsSignerGate::_removeSigner
function callsSafeManagerLib::findPrevOwner
to identify the previous signer of the signer to be removed. However, the_owners
array parameter is unbounded. If the array is too large, this iteration may exceed the gas limit, causing the transaction to revert.HatsSignerGate::_removeSigner function:
Impact
Failure of the
HatsSignerGate::_removeSigner
function results in the inability to remove signersThe text was updated successfully, but these errors were encountered: