Skip to content

Commit

Permalink
remove ExampleToken.Minter.mintTokens() pre condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Oct 19, 2023
1 parent 28fc3ba commit 0b218d8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions contracts/ExampleToken-v2.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ access(all) contract ExampleToken: ViewResolver {
/// and returns them to the calling context.
///
access(all) fun mintTokens(amount: UFix64): @ExampleToken.Vault {
pre {
amount > 0.0: "Amount minted must be greater than zero"
}
ExampleToken.totalSupply = ExampleToken.totalSupply + amount
emit TokensMinted(amount: amount, type: self.getType().identifier)
return <-create Vault(balance: amount)
Expand Down

0 comments on commit 0b218d8

Please sign in to comment.