fabric-samples/token-erc-1155/chaincode-go/chaincode
Baran Kılıç 98028c7da0 Fix ERC1155 chaincode indeterminism caused by iterating maps in Go
The functions BatchTransferFrom and BatchTransferFromMultiRecipient in ERC1155 sometimes give the error `ProposalResponsePayloads do not match`. This happens because iterating maps in Go is not deterministic. As a solution, I copied the keys of the map and sorted them and iterated over the sorted keys.

Signed-off-by: Baran Kılıç <baran.kilic@boun.edu.tr>
2021-09-29 17:23:35 -04:00
..
contract.go Fix ERC1155 chaincode indeterminism caused by iterating maps in Go 2021-09-29 17:23:35 -04:00