Fix wrong test directions
This commit is contained in:
parent
7b770c52d5
commit
2ef5b26b1b
@ -474,8 +474,8 @@ let paid_storage_space c contract =
|
||||
| Some paid_space -> return paid_space
|
||||
|
||||
let record_paid_storage_space c contract paid_storage =
|
||||
Storage.Contract.Paid_storage_space.get c contract >>=? fun already_paid_fees ->
|
||||
if Compare.Z.(already_paid_fees < paid_storage) then
|
||||
Storage.Contract.Used_storage_space.get c contract >>=? fun already_paid_fees ->
|
||||
if Compare.Z.(already_paid_fees >= paid_storage) then
|
||||
return (Z.zero, c)
|
||||
else
|
||||
let to_pay = Z.sub paid_storage already_paid_fees in
|
||||
|
Loading…
Reference in New Issue
Block a user