MCPcopy
hub / github.com/yeasy/blockchain_guide / energyTransactionKey

Function energyTransactionKey

11_app_dev/chaincode_example05.go:322–324  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

320}
321
322func energyTransactionKey(id int) string {
323 return fmt.Sprintf("energyTransaction:%d", id)
324}
325
326func main() {
327 chaincode, err := contractapi.NewChaincode(&SmartContract{})

Callers 2

BuyByAddressMethod · 0.85
GetTransactionByIDMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected