Skip to content

Commit

Permalink
Fix transaction fees underflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janezpodhostnik authored and joshuahannan committed Feb 2, 2023
1 parent 751cb29 commit 732f378
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 15 deletions.
2 changes: 1 addition & 1 deletion contracts/FlowStorageFees.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub contract FlowStorageFees {
.borrow() {
if accountAddress == payer {
// if the account is the payer, deduct the maximum possible transaction fees from the balance
balance = balanceRef.balance - maxTxFees
balance = balanceRef.balance.saturatingSubtract(maxTxFees)
} else {
balance = balanceRef.balance
}
Expand Down
6 changes: 3 additions & 3 deletions lib/go/contracts/internal/assets/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 732f378

Please sign in to comment.