From 0b218d84cc33fcd7f2d07539a5baa1cf7678f493 Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:08:20 -0500 Subject: [PATCH] remove ExampleToken.Minter.mintTokens() pre condition --- contracts/ExampleToken-v2.cdc | 3 --- 1 file changed, 3 deletions(-) diff --git a/contracts/ExampleToken-v2.cdc b/contracts/ExampleToken-v2.cdc index 443f7ff..175b379 100644 --- a/contracts/ExampleToken-v2.cdc +++ b/contracts/ExampleToken-v2.cdc @@ -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)