allow spending more than one stakes in one tx

This commit is contained in:
Hongrui Fang 2022-09-23 14:41:58 +08:00
parent b876774921
commit dd05ab45ca
No known key found for this signature in database
GPG key ID: F10AB2CCE24113DD
6 changed files with 397 additions and 325 deletions

View file

@ -138,7 +138,6 @@ stakeDepositWithdraw config =
mconcat
[ txId "0b2086cbf8b6900f8cb65e012de4516cb66b5cb08a9aaba12a8b88be"
, signedWith signer
, mint st
, input $
mconcat
[ script stakeValidatorHash
@ -147,7 +146,7 @@ stakeDepositWithdraw config =
st
<> Value.assetClassValue (untag governor.gtClassRef) (fromDiscrete stakeBefore.stakedAmount)
)
, withDatum stakeAfter
, withDatum stakeBefore
, withRef stakeRef
]
, output $