Skip to content
代码片段 群组 项目
  1. 12月 05, 2020
  2. 12月 04, 2020
  3. 12月 03, 2020
  4. 12月 01, 2020
  5. 11月 27, 2020
  6. 11月 26, 2020
  7. 11月 24, 2020
  8. 11月 23, 2020
  9. 11月 22, 2020
  10. 11月 13, 2020
  11. 11月 11, 2020
  12. 11月 10, 2020
  13. 11月 07, 2020
  14. 11月 06, 2020
  15. 11月 05, 2020
    • Bram Dufour's avatar
      Signed-off-by: Bram Dufour <britaj@bancolombia.com.co> (#366) · 981893ab
      Bram Dufour 创作于
      Added check to avoid double spent in token-utxo chaincode
      
      In the transfer function it was possible to pass the same utxo more than once in the array of input utxos without any error. Making it possible to spend the same utxo more than once in the same transaction and like this create more tokens than minted. To fix this I changed the array that was used to store the input utxo states to a map and so utxos were stored in the map by there key, which made it possible to know if a key and so a utxo had already been used.
      I tested this by setting up the test-network, deploying the token-utxo chaincode with my fix, minting a utxo and trying to spent this utxo more than once in the same transaction, which was not possible anymore. It can only be spent one time anymore with this fix.
      981893ab
  16. 11月 04, 2020
  17. 10月 29, 2020
  18. 10月 28, 2020
    • Yuki Kondo's avatar
      [FAB-18228] Add ERC20 fungible token sample for chaincode javascript (#327) · e8d6e468
      Yuki Kondo 创作于
      
      This PR adds ERC20 capabilities to the token-account-based sample.
      It includes javascript Chaincode and the updated README to explain
      how to use tokens in the Fabric test-network.
      
      Signed-off-by: default avatarYuki Kondo <yuki.kondo.ob@hitachi.com>
      e8d6e468
    • Arnaud J Le Hors's avatar
      Fix commercial paper org scripts (#362) · 3fbce62c
      Arnaud J Le Hors 创作于
      
      The current scripts given to setup the user environment do not work
      on Mac:
      
      $ . ./magnetocorp.sh
      -bash: cd: /Users/lehors/Projects/Go/src/github.com/hyperledger/fabric-samples/commercial-paper/organization/magnetocorp
      Saving session...
      ...copying shared history...
      ...saving history...truncating history files...
      ...completed./../../../test-network: No such file or directory
      -bash: ./scripts/envVar.sh: No such file or directory
      [...truncated...]
      export FABRIC_CFG_PATH="/Users/lehors/Projects/Go/src/github.com/hyperledger/fabric-samples/commercial-paper/organization/magnetocorp"
      export PATH="/Users/lehors/Projects/Go/src/github.com/hyperledger/fabric-samples/commercial-paper/organization/magnetocorp"
      export PEER_PARMS=""
      Saving session...
      Saving session...
      
      The session history related output is actually captured when setting the environment variables:
      
      $ echo $FABRIC_CFG_PATH
      /Users/lehors/Projects/Go/src/github.com/hyperledger/fabric-samples/commercial-paper/organization/magnetocorp
      Saving session...
      ...copying shared history...
      ...saving history...truncating history files...
      ...completed./../../../config
      
      With this simple change the scripts work:
      
      $ echo $FABRIC_CFG_PATH
      /Users/lehors/Projects/Go/src/github.com/hyperledger/fabric-samples/commercial-paper/organization/magnetocorp/../../../config
      
      Signed-off-by: default avatarArnaud J Le Hors <lehors@us.ibm.com>
      3fbce62c
  19. 10月 23, 2020
  20. 10月 20, 2020
  21. 10月 19, 2020
  22. 10月 16, 2020
  23. 10月 14, 2020