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
# pconstant False
# plam ((authorizedBy #) . pfromData)
# pfromData firstStakeInputDatumF.delegatedTo
) )
#&& pmaybeData #|| ( authCheckHelperF.allOwnByOrDelegatedToTheFirstOwner
# pconstant False #&& authorizedBy
# plam ((authorizedBy #) . pfromData) # firstStakeInputDatumF.owner
# pfromData firstStakeInputDatumF.delegatedTo )
signedBy = signedBy =
pif pif