fix delegatee auth check

This commit is contained in:
Hongrui Fang 2022-11-28 22:19:44 +08:00
parent 2b59923059
commit b0e476a81c
No known key found for this signature in database
GPG key ID: F10AB2CCE24113DD

View file

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