Skip to content

Commit 4ae87e5

Browse files
committed
Restore "CIP-40 Collateral Output" localnet tests
1 parent adac7b9 commit 4ae87e5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

examples/Lose7Ada.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ spendFromAlwaysFails vhash validator txId = do
130130
{ balancerConstraints: mempty
131131
, extraUtxos: toUtxoMap [ utxo ]
132132
}
133-
signedTx <- signTransaction (spendTx # _isValid .~ true)
133+
signedTx <- signTransaction spendTx
134134
spendTxId <- submit signedTx
135135
logInfo' $ "Tx ID: " <> show spendTxId
136136
awaitTxConfirmed spendTxId
@@ -149,8 +149,8 @@ alwaysFails :: String
149149
alwaysFails =
150150
"""
151151
{
152-
"type": "PlutusScriptV1",
153-
"description": "",
154-
"cborHex": "581e581c01000033223232222350040071235002353003001498498480048005"
152+
"type": "PlutusScriptV2",
153+
"description": "AlwaysFails validator",
154+
"cborHex": "4746010000222601"
155155
}
156156
"""

test/Testnet/Contract.purs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,8 +1533,7 @@ suite = do
15331533
AlwaysSucceeds.spendFromAlwaysSucceeds vhash validator txId
15341534

15351535
group "CIP-40 Collateral Output" do
1536-
skip $ test
1537-
"Always failing script triggers Collateral Return (ADA-only) UNSKIP AFTER CONWAY"
1536+
test "Always failing script triggers Collateral Return (ADA-only)"
15381537
do
15391538
let
15401539
distribution :: InitialUTxOs /\ InitialUTxOs
@@ -1565,8 +1564,7 @@ suite = do
15651564
collateralLoss
15661565
)
15671566

1568-
skip $ test
1569-
"AlwaysFails script triggers Native Asset Collateral Return (tokens) UNSKIP AFTER CONWAY"
1567+
test "AlwaysFails script triggers Native Asset Collateral Return (tokens)"
15701568
do
15711569
let
15721570
distribution :: InitialUTxOs /\ InitialUTxOs

0 commit comments

Comments
 (0)