Skip to content

Instantly share code, notes, and snippets.

@vitiko
Created May 20, 2018 19:45
Show Gist options
  • Save vitiko/e77b2c6cdebbf155589a3195168d82b9 to your computer and use it in GitHub Desktop.
Save vitiko/e77b2c6cdebbf155589a3195168d82b9 to your computer and use it in GitHub Desktop.
Cars chaincode asset
// Car struct for chaincode state
type Car struct {
Id string
Title string
Owner string
UpdatedAt time.Time // set by chaincode method
}
// CarPayload chaincode method argument
type CarPayload struct {
Id string
Title string
Owner string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment