diff --git a/token-erc-20/chaincode-go/chaincode/token_contract.go b/token-erc-20/chaincode-go/chaincode/token_contract.go index 66d24113..e17f65fa 100644 --- a/token-erc-20/chaincode-go/chaincode/token_contract.go +++ b/token-erc-20/chaincode-go/chaincode/token_contract.go @@ -23,9 +23,9 @@ type SmartContract struct { // event provides an organized struct for emitting events type event struct { - from string - to string - value int + From string `json:"from"` + To string `json:"to"` + Value int `json:"value"` } // Mint creates new tokens and adds them to minter's account balance