Skip to content

Instantly share code, notes, and snippets.

@Jojoooo1
Last active January 31, 2019 10:46
Show Gist options
  • Save Jojoooo1/ffc4c7c91fb6ac58aa96eeebce52b71c to your computer and use it in GitHub Desktop.
Save Jojoooo1/ffc4c7c91fb6ac58aa96eeebce52b71c to your computer and use it in GitHub Desktop.
chaincode-1.js
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