Skip to content

Commit f540c11

Browse files
Unisaymkoura
authored andcommitted
test(plutus): add Plutus V3 array builtin E2E tests
Add E2E tests for indexArray, lengthOfArray, and listToArray builtins introduced in Plutus V3 protocol version 11. These builtins are part of batch6 enhancements that enable efficient array operations in smart contracts. Tests verify successful execution of array operations through minting policy scripts integrated with the batch6 test suite.
1 parent 2c87d77 commit f540c11

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "PlutusScriptV3",
3+
"description": "succeedingIndexArrayPolicyScriptV3",
4+
"cborHex": "585d01010032293370e900319abdb357b460050034800b003480130034801b003480230034802b0000240093263357389201126d6b496e6465784172726179506f6c69637900800526191800800914800d2f58122335740004660080080021"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "PlutusScriptV3",
3+
"description": "succeedingLengthOfArrayPolicyScriptV3",
4+
"cborHex": "585501010032293370e90031abd9357b4600500348053003480a3003480f300013263357389201156d6b4c656e6774684f664172726179506f6c69637900800526191800800914800d2f58122335740004660080080021"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "PlutusScriptV3",
3+
"description": "succeedingListToArrayPolicyScriptV3",
4+
"cborHex": "587b01010032232993370e90041abd9001a50c99b874832004cd5ed800a40014a13370e90500319abdb0014801899319ab9c4901136d6b4c697374546f4172726179506f6c696379008005261abda3002801a419003801a412007801a41b009801a41400d8000191800800914800d2f581223357400046600800800201"
5+
}

cardano_node_tests/tests/plutus_common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ class PlutusScriptData:
487487
"succeedingExpModIntegerExponentOnePolicyScript_V3_110.plutus",
488488
"succeedingExpModIntegerInversePolicyScript_V3_110.plutus",
489489
"succeedingExpModIntegerPolicyScript_V3_110.plutus",
490+
"succeedingIndexArrayPolicyScript_V3_110.plutus",
491+
"succeedingLengthOfArrayPolicyScript_V3_110.plutus",
492+
"succeedingListToArrayPolicyScript_V3_110.plutus",
490493
)
491494

492495
FAILING_BATCH6_SCRIPT_FILES_V3 = (

0 commit comments

Comments
 (0)