Skip to content

Commit

Permalink
add updated FT
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Feb 5, 2024
1 parent e8c999a commit 322e5f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/utility/FungibleToken.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ to the Provider interface.
*/

import ViewResolver from "ViewResolver"
// import Burner from "Burner"
import Burner from "Burner"

/// FungibleToken
///
Expand Down Expand Up @@ -131,7 +131,7 @@ access(all) contract interface FungibleToken: ViewResolver {
/// Ideally, this interface would also conform to Receiver, Balance, Transferor, Provider, and Resolver
/// but that is not supported yet
///
access(all) resource interface Vault: Receiver, Provider, Balance, ViewResolver.Resolver { //, Burner.Burnable {
access(all) resource interface Vault: Receiver, Provider, Balance, ViewResolver.Resolver, Burner.Burnable {

/// Field that tracks the balance of a vault
access(all) var balance: UFix64
Expand Down Expand Up @@ -182,6 +182,7 @@ access(all) contract interface FungibleToken: ViewResolver {
"Amount withdrawn must be less than or equal than the balance of the Vault"
}
post {
result.getType() == self.getType(): "Must return the same vault type as self"
// use the special function `before` to get the value of the `balance` field
// at the beginning of the function execution
//
Expand Down

0 comments on commit 322e5f5

Please sign in to comment.