Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "encoding/json"
- "strconv"
- "github.com/hyperledger/fabric/core/chaincode/shim"
- pb "github.com/hyperledger/fabric/protos/peer"
- )
- // ============================================================================================================================
- // write() - genric write variable into ledger
- //
- // Shows Off PutState() - writting a key/value into the ledger
- //
- // Inputs - Array of strings
- // 0 , 1
- // key , value
- // "abc" , "test"
- // ============================================================================================================================
- func write(stub shim.ChaincodeStubInterface, args []string) pb.Response {
- var value,key string
- var err error
- var keys = 1
Add Comment
Please, Sign In to add comment