Skip to content

Commit

Permalink
remove supply === 0 assertion from init
Browse files Browse the repository at this point in the history
  • Loading branch information
idea404 committed Oct 11, 2022
1 parent 5a4428d commit 97842a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/src/fungible-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class FungibleToken {
@initialize({})
init({ owner_id, total_supply }) {
assert(BigInt(total_supply) > BigInt(0), "Total supply should be a positive number");
assert(this.totalSupply === "0", "Contract is already initialized");
this.totalSupply = total_supply;
this.accounts.set(owner_id, this.totalSupply);
}
Expand Down

0 comments on commit 97842a0

Please sign in to comment.