Skip to content

Commit

Permalink
quit in integration test - part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed May 30, 2023
1 parent d2684a5 commit 92ed40c
Showing 1 changed file with 16 additions and 0 deletions.
Expand Up @@ -2175,6 +2175,22 @@ spec = describe "SHARED_TRANSACTIONS" $ do
(.> previousBalance)
]

-- now we can quit
let delegationQuit = Json [json|{
"delegations": [{
"quit": {
"stake_key_index": "0H"
}
}]
}|]
rTx4 <- request @(ApiConstructTransaction n) ctx
(Link.createUnsignedTransaction @'Shared party1) Default delegationQuit
verify rTx4
[ expectResponseCode HTTP.status202
, expectField (#coinSelection . #depositsTaken) (`shouldBe` [])
, expectField (#coinSelection . #depositsReturned) (`shouldBe` [depositAmt])
]

where
listSharedTransactions ctx w mStart mEnd mOrder mLimit = do
let path = Link.listTransactions' @'Shared w
Expand Down

0 comments on commit 92ed40c

Please sign in to comment.