Closed shobitb closed 2 years ago
@shobitb Thanks for the PR. please rebase with master and I will merge.
Hi @BitcoinZavior I've resolved the conflicts. I did it via github (browser) so I think it created a new merge commit (not rebase). Is that okay?
Yes that should do. I am just waiting for @rsbkme to try main branch before merge anything new.
With the way the switch/case block is written in createDescriptor, the shp2wpkh and p2shp2wpkh cases result in a descriptor without a closing parenthesis e.g.
sh(wpkh(...)
. This change is a refactoring of the switch case block to enable constructing descriptor for all cases correctly, and also improve maintainability and readability.