Closed RnkSngh closed 1 month ago
[!CAUTION]
Review failed
The head commit changed during the review from e00dda299d91490410040db7ff986adc749c42ad to 2768074ae4bce1c2d5d8870adcc56c0d26637735.
The changes involve modifications to two contracts: DispatcherRealProofMultiClient
and Base
. In the DispatcherRealProofMultiClient
, assertions were added to ensure a connection exists before deletion and to confirm its removal. In the Base
contract, a constant was updated, and a function's return type was changed from uint256
to address
, along with adjustments to its internal logic for mapping connections to client IDs.
Files | Change Summary |
---|---|
test/Dispatcher/Dispatcher.multiclient.sol | Updated test_Dispatcher_removeConnection to add assertions for connection existence and successful removal. |
test/utils/Dispatcher.base.t.sol | Changed CONNECTION_TO_CLIENT_ID_STARTING_SLOT from 259 to 260 and modified _getConnectiontoClientIdMapping to return address instead of uint256 , with updated internal logic for client ID mapping. |
In the code where connections play,
A rabbit hops and clears the way.
With checks to see if links are there,
And mappings changed with utmost care.
A little tweak, a constant shift,
In the world of code, we find our gift! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
thanks to @nicopernas for finding out that the low-level caluclation was incorrect in our test suite.
This pr fixes this, and also now actually tests that this calculation is working
Summary by CodeRabbit
Bug Fixes
New Features
Chores