ArdanaLabs / dUSD

5 stars 3 forks source link

Check if UTxO is spent #376

Closed leomayleomay closed 1 year ago

leomayleomay commented 2 years ago

Closes

https://github.com/ArdanaLabs/dUSD/issues/328

other changes

the PR is to check if UTxO is spent by checking if the wallet balance is increased after redeem is done, it will sleep 5 seconds and retry the check if balance not changing, until it finds the increase or timeout

leomayleomay commented 2 years ago

Looks good. Can you also add a test case for this as well?

@epiro-ps the UI will look no difference than before the changes

epiro-ps commented 2 years ago

Looks good. Can you also add a test case for this as well?

@epiro-ps the UI will look no difference than before the changes

I mean a test similar to the one described here, that tests that the UI changed only when the wallet state changed as expected.

leomayleomay commented 2 years ago

I mean a test similar to the one described https://github.com/ArdanaLabs/dUSD/issues/328#issuecomment-1230341705, that tests that the UI changed only when the wallet state changed as expected.

@epiro-ps ahh, sure thing, I guess I will add a new UI state saying Unlocking funds ... when checking the wallet balance