examples: fix ANT token example

We don't have totalSupply in contract storage because we did't put it
there. Fixed.
This commit is contained in:
Anna Shaleva 2020-08-11 11:37:28 +03:00
parent b5494320f9
commit e2b22bc511

View file

@ -116,6 +116,7 @@ func (t Token) Mint(ctx storage.Context, to []byte) bool {
storage.Put(ctx, to, t.TotalSupply) storage.Put(ctx, to, t.TotalSupply)
storage.Put(ctx, []byte("minted"), true) storage.Put(ctx, []byte("minted"), true)
storage.Put(ctx, []byte(t.CirculationKey), t.TotalSupply)
runtime.Notify("transfer", "", to, t.TotalSupply) runtime.Notify("transfer", "", to, t.TotalSupply)
return true return true
} }