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
The AManagedBudget contract is intended to support multiple interfaces, including ERC1155. However, the current implementation of the supportsInterface function does not correctly return true for the ERC1155 interface ID (0xd9b67a26). This non-compliance can lead to interoperability issues with other contracts and tools that expect the contract to adhere to the ERC1155 standard.
The supportsInterface function currently checks for the interface IDs of AManagedBudget, IERC1155Receiver, and IERC165, as well as any interfaces supported by ABudget. However, it does not explicitly check for the ERC1155 interface ID (0xd9b67a26).
The text was updated successfully, but these errors were encountered:
sherlock-admin3
changed the title
Formal Charcoal Albatross - ManagedBudget and AManagedBudget Contract Does Not Fully Implement ERC1155 Interface
AresAudits - ManagedBudget and AManagedBudget Contract Does Not Fully Implement ERC1155 Interface
Oct 1, 2024
AresAudits
Medium
ManagedBudget
andAManagedBudget
Contract Does Not Fully Implement ERC1155 InterfaceSummary
duplicate of sherlock-audit/2024-04-titles-judging#287
Vulnerability Detail
The
AManagedBudget
contract is intended to support multiple interfaces, includingERC1155
. However, the current implementation of thesupportsInterface
function does not correctly return true for theERC1155
interface ID (0xd9b67a26). This non-compliance can lead to interoperability issues with other contracts and tools that expect the contract to adhere to theERC1155
standard.The
supportsInterface
function currently checks for the interface IDs of AManagedBudget, IERC1155Receiver, and IERC165, as well as any interfaces supported by ABudget. However, it does not explicitly check for the ERC1155 interface ID (0xd9b67a26).Impact
The contract is to be a strict implementation of ERC1155, but it does not implement the mandatory ERC1155.supportsInterface() function.
Code Snippet
https://github.com/sherlock-audit/2024-06-boost-aa-wallet/blob/78930f2ed6570f30e356b5529bd4bcbe5194eb8b/boost-protocol/packages/evm/contracts/budgets/AManagedBudget.sol#L51C5-L54C6
Tool used
Manual Review
Recommendation
The text was updated successfully, but these errors were encountered: