Last active
January 31, 2019 10:46
-
-
Save Jojoooo1/ffc4c7c91fb6ac58aa96eeebce52b71c to your computer and use it in GitHub Desktop.
chaincode-1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shim from 'fabric-shim'; | |
import util from 'util'; | |
export default class Chaincode { | |
// 1. Mandatory Init function | |
async Init(stub) { | |
const ret = stub.getFunctionAndParameters(); | |
console.info(ret); | |
console.info('=========== Instantiated Codigo Rastreamento Chaincode ==========='); | |
return shim.success(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment