From e2b22bc511c88cc1e2783eb1c7e0d581b4764d87 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 11 Aug 2020 11:37:28 +0300 Subject: [PATCH] examples: fix ANT token example We don't have totalSupply in contract storage because we did't put it there. Fixed. --- examples/token/nep5/nep5.go | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/token/nep5/nep5.go b/examples/token/nep5/nep5.go index 8f5d35a5d..f5b911953 100644 --- a/examples/token/nep5/nep5.go +++ b/examples/token/nep5/nep5.go @@ -116,6 +116,7 @@ func (t Token) Mint(ctx storage.Context, to []byte) bool { storage.Put(ctx, to, t.TotalSupply) storage.Put(ctx, []byte("minted"), true) + storage.Put(ctx, []byte(t.CirculationKey), t.TotalSupply) runtime.Notify("transfer", "", to, t.TotalSupply) return true }