In this sample, we will not edit the code generate via plug-in Using sample as it provides basic read/write feature sample for demo.
await ctx.stub.putState(callForCodeId, buffer);
Open project callforcodedemo@0.0.1 instaniate.
Ref to test case
createCallForCode(ctx, '1003', 'call for code 1003 value');
submit transaction
["1003","call for code 1003 value"]
Ref to test case
readCallForCode(ctx, '1003')
evaluate transaction
["1003"]
npm test
./lib/call-for-code-contract.js
./test/call-for-code-contract.js