mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 19:29:39 +00:00
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:
parent
b5494320f9
commit
e2b22bc511
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue