diff --git a/smart-contract/assembly/contracts/main.ts b/smart-contract/assembly/contracts/main.ts index efcd62d..4b6b838 100644 --- a/smart-contract/assembly/contracts/main.ts +++ b/smart-contract/assembly/contracts/main.ts @@ -175,7 +175,7 @@ export function dnsFree(binaryArgs: StaticArray): 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 +