fabric-samples/token-erc-1155/chaincode-go/chaincode
Baran Kılıç d157b18501 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 12:51:31 +03:00
..
contract.go Fix ERC1155 chaincode indeterminism caused by iterating maps in Go 2021-09-29 12:51:31 +03:00