Skip to content

Commit

Permalink
fix supply update and burner name
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Jan 24, 2024
1 parent 3886c24 commit 324e2e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/ExampleToken.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ access(all) contract ExampleToken: FungibleToken {
/// Called when a fungible token is burned via the `Burner.burn()` method
access(contract) fun burnCallback() {
if self.balance > 0.0 {
ExampleToken.totalSupply = ExampleToken.totalSupply - vault.getBalance()
ExampleToken.totalSupply = ExampleToken.totalSupply - self.balance
}
self.balance = 0.0
}
Expand Down
2 changes: 1 addition & 1 deletion lib/go/contracts/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
filenameFTSwitchboard = "FungibleTokenSwitchboard.cdc"
filenameFTMetadataViews = "FungibleTokenMetadataViews.cdc"
filenameViewResolver = "utility/ViewResolver.cdc"
filenameBurner = "utility/Burner"
filenameBurner = "utility/Burner.cdc"
)

// FungibleToken returns the FungibleToken contract.
Expand Down
Loading

0 comments on commit 324e2e3

Please sign in to comment.