From 651f2235aa485f4146765c9d442314fbce51cfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baran=20K=C4=B1l=C4=B1=C3=A7?= <36154262+kilicbaran@users.noreply.github.com> Date: Wed, 24 Feb 2021 16:58:13 +0300 Subject: [PATCH] Fix empty event in token-erc-20 example (#424) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Baran Kılıç --- token-erc-20/chaincode-go/chaincode/token_contract.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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