Created
March 19, 2020 16:21
-
-
Save cayblood/e9efdca98b6ce6dce635e283a6b129b0 to your computer and use it in GitHub Desktop.
Basic chaincode example
This file contains hidden or 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
'use strict'; | |
const shim = require('fabric-shim'); | |
let Chaincode = class { | |
async Init(stub) { | |
console.info('============= Init called ============='); | |
return shim.success(); | |
} | |
async Invoke(stub) { | |
console.info('============= Invoke called ============='); | |
return shim.success(); | |
} | |
} | |
shim.start(new Chaincode()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment