ERC-1155 Standard Violations
Detects deviations from the ERC-1155 multi-token standard including missing batch transfer callbacks and incorrect event emissions.
ERC-1155 Standard Violations
Overview
The ERC-1155 violations detector identifies multi-token contracts that deviate from the ERC-1155 standard. Key violations include missing onERC1155Received/onERC1155BatchReceived callbacks, incorrect TransferSingle/TransferBatch event emissions, and missing balance query implementations.
Why This Is an Issue
ERC-1155 violations cause token loss when transfers to contracts lack receiver callbacks, break marketplace integrations, and prevent proper batch transfer atomicity. The standard mandates that batch operations must be atomic — partial failures must revert the entire batch.
Examples
Sample Sigvex Output
{
"detector_id": "erc1155-violations",
"severity": "high",
"confidence": 0.85,
"description": "safeBatchTransferFrom() does not call onERC1155BatchReceived on recipient. Batch transfers to contracts will lock tokens permanently.",
"location": { "function": "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)", "offset": 0 }
}
Detection Methodology
Identifies ERC-1155 selectors, verifies receiver callback implementation, batch atomicity, and event emissions with correct topics and indexed parameters.