Skip to content

Commit

Permalink
Fix bad order balance
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed May 7, 2024
1 parent b9e4e7b commit fd93902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart-contract/assembly/contracts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function dnsFree(binaryArgs: StaticArray<u8>): void {
Storage.del(buildTargetKey(domain));
Storage.del(buildTokenIdKey(domain));
let finalBalance = balance();
let storageCostsRefunded = initialBalance - finalBalance;
let storageCostsRefunded = finalBalance - initialBalance;
let refundTotal =
calculateRefund(domain.length) +
storageCostsRefunded +
Expand Down

0 comments on commit fd93902

Please sign in to comment.