Closed 0xbrito closed 1 year ago
@landabaso could you review this, please?
Thanks @0xbrito !
In this proposal, if the user tries to set (again) the same timelock, then undefined
will be passed to src/updatePsbt.
The timelock argument in src/updatePsbt
should always correspond to real, correct information or otherwise it will make the code difficult to understand and maintain in the future.
I believe what you're trying to achieve is not throwing if exactly the same timelock is being set again. I'd consider this (not sure yet), but in a more clear, not convoluted way.
@landabaso Awesome!
And regarding to my proposal, I acknowledge that it was pretty much a superficial approach, it actually was just a small quick fix I added to get my app up and running. However, thanks for this!
This relates to #15