fix delegatee auth check

This commit is contained in:
Hongrui Fang 2022-11-28 22:19:44 +08:00
parent 5f9e6f57b2
commit 53753fb8d5

View file

@ -414,13 +414,16 @@ mkStakeValidator impl sstSymbol pstClass gtClass =
# firstStakeInputDatumF.owner # firstStakeInputDatumF.owner
delegateSignsTransaction = delegateSignsTransaction =
( authCheckHelperF.allOwnByOrDelegatedToTheFirstOwner ( authCheckHelperF.allOwnByOrDelegatedToTheFirstDelegatee
#|| authCheckHelperF.allOwnByOrDelegatedToTheFirstDelegatee
)
#&& pmaybeData #&& pmaybeData
# pconstant False # pconstant False
# plam ((authorizedBy #) . pfromData) # plam ((authorizedBy #) . pfromData)
# pfromData firstStakeInputDatumF.delegatedTo # pfromData firstStakeInputDatumF.delegatedTo
)
#|| ( authCheckHelperF.allOwnByOrDelegatedToTheFirstOwner
#&& authorizedBy
# firstStakeInputDatumF.owner
)
signedBy = signedBy =
pif pif