Azure-Samples / blockchain

Azure Blockchain Content and Samples
MIT License
820 stars 687 forks source link

Bug report in defective-component-counter smart contract #278

Open academic-starter opened 8 months ago

academic-starter commented 8 months ago

As documented by its following specification, computeTotal funtion can only be called once. However, in the contract implementation, there is no such restriction. https://github.com/Azure-Samples/blockchain/blob/1b712d6d05cca8da17bdd1894de8c3d25905685d/blockchain-workbench/application-and-smart-contract-samples/defective-component-counter/ethereum/DefectiveComponentCounter.json#L73-L99