Skip to content

Instantly share code, notes, and snippets.

@aschmidt75
Created May 10, 2019 13:34
Show Gist options
  • Save aschmidt75/86d751049aae94a774a2d2fa20d62ec8 to your computer and use it in GitHub Desktop.
Save aschmidt75/86d751049aae94a774a2d2fa20d62ec8 to your computer and use it in GitHub Desktop.
Instantiating chaincode.
enter Init
enter Invoke
requested function=registerIndividualParticipant, with args=[]string{"{ \"name\": \"Andreas\", \"address\": \"Some where 17, 50735 Cologne, DE\" }"}
enter registerIndividualParticipantInvocation.checkParseArguments
enter registerIndividualParticipant.process
arg=main.registerIndividualParticipantArg{Name:"Andreas", Address:"Some where 17, 50735 Cologne, DE"}
newId: PutState to key=sample.PreciousCargoChaincode.IndividualParticipant.index, index=1
key=sample.PreciousCargoChaincode.IndividualParticipant#0000000001
PutState to key=sample.PreciousCargoChaincode.IndividualParticipant#0000000001, data=main.IndividualParticipant{Participant:main.Participant{ID:main.ID{ID:"0000000001"}, Name:"Andreas"}, Address:"Some where 17, 50735 Cologne, DE"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment