#49390 [SC-Low] `UInt64SetLib#remove_item` would revert if the item is empty
Previous#49250 [SC-Insight] `AccessControl`: unnecessary box usage in `_grant_role`Next#49409 [SC-Insight] Incorrect comment in UInt64SetLib
Was this helpful?
Was this helpful?
Was this helpful?
test("removes from empty array", async () => {
expect(await client.removeItem({ args: [873099n, []] })).toEqual([false, []]);
expect(await client.removeItem({ args: [34n, []] })).toEqual([false, []]);
});● UInt64SetLib › remove item › removes from empty array
frame_dig -1
intc_0 // 0
extract_uint16
dup
intc_1 // 1
- <--- Error
intc_0 // 0
remove_item_for_header@1:
// contracts/library/UInt64SetLib.py:34