simple tests for setting delegate
This commit is contained in:
parent
2d6e8b4c4e
commit
be1eabc261
5 changed files with 238 additions and 1 deletions
|
|
@ -522,7 +522,7 @@ stakeValidator stake =
|
|||
|
||||
PDelegateTo ((pfield @"pkh" #) -> pkh) -> unTermCont $ do
|
||||
pguardC "Cannot delegate to the owner" $
|
||||
pnot #$ stakeDatum.owner #== pfromData pkh
|
||||
pnot #$ stakeDatum.owner #== pfromData pkh
|
||||
|
||||
pure $ setDelegate #$ pcon $ PDJust $ pdcons @"_0" # pkh #$ pdnil
|
||||
------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue