-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADP 3491] Relax policy key guard #4850
base: master
Are you sure you want to change the base?
Conversation
@@ -2650,7 +2653,7 @@ constructTransaction api knownPools poolStatus apiWalletId body = do | |||
makeLeft $ | |||
toTokenMapAndScript ShelleyKeyS | |||
scriptT | |||
(Map.singleton (Cosigner 0) policyXPub) | |||
(Map.singleton (Cosigner 0) $ fromJust policyXPubM) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 Having to resort to an approach with fromJust
seems unfortunate...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, fair point. Now no partial function fixing ;-)
ea516e3
to
3d54963
Compare
waiting for the daedalus team to confirm if the fix works. If yes then we will undraft it. |
9971ae7
to
d443f0e
Compare
handle reference script situation resign from fremJust
d443f0e
to
eab1d67
Compare
There's a remaining issue: |
Delegate that task to callers
Fix #4872 |
5b4f4de
to
ca7546a
Compare
policyXPub
is needed in constructTransaction in two cases:instead of using
policyXPub
we usepolicyXPubM
throught the function and only deconstruct it when checking those two cases.ErrReadPolicyPublicKeyAbsen
is used for the those two valid situations when policy xpub is missing.Comments
Issue Number
Fix #4872