fabric-samples
fabric-samples copied to clipboard
ERC-1155 multi recipient transfer can produce non deterministic endorsements
It happens because sortedKeysToID() has an inconsistent comparator in contract.go, and its output is used to drive state writes. For keys sharing To but different ID, ordering is undefined.
It can be reproduced by calling BatchTransferFromMultiRecipient with repeated recipient and multiple token IDs; peers can iterate/write in different orders and return mismatched proposal payloads.