Skip to content

Commit 9b7da5a

Browse files
Mateusz Czeladkalinconvidal
authored andcommitted
test: fix duplicate DRep vote delegation operations in golden files
Remove duplicate dRepVoteDelegation operations from integration test golden files. These duplicates were appearing due to the certificate processing logic creating operations twice. This fix aligns with the TransactionOperationParser refactoring that properly handles DRep vote delegation certificates.
1 parent 8eb0b54 commit 9b7da5a

File tree

5 files changed

+0
-93
lines changed

5 files changed

+0
-93
lines changed

tests/integration/golden_examples/rosetta_java/construction/parse/drep_vote_delegation/drep_delegation_abstain.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,6 @@
7373
"type": "abstain"
7474
}
7575
}
76-
},
77-
{
78-
"operation_identifier": {
79-
"index": 2
80-
},
81-
"type": "dRepVoteDelegation",
82-
"account": {
83-
"address": "stake_test1uql3k2h9kskfma8y53vth7wmptmlw8zxx67cx7c3pwj8sqs6zl0wr"
84-
},
85-
"metadata": {
86-
"staking_credential": {
87-
"hex_bytes": "fdbee86a702c49d23f45ab80e697b93ec48b744d5f413ef59c338c3f7b2d2de8",
88-
"curve_type": "edwards25519"
89-
},
90-
"drep": {
91-
"type": "abstain"
92-
}
93-
}
9476
}
9577
],
9678
"account_identifier_signers": []

tests/integration/golden_examples/rosetta_java/construction/parse/drep_vote_delegation/drep_delegation_key_hash.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@
7474
"type": "key_hash"
7575
}
7676
}
77-
},
78-
{
79-
"operation_identifier": {
80-
"index": 2
81-
},
82-
"type": "dRepVoteDelegation",
83-
"account": {
84-
"address": "stake_test1uql3k2h9kskfma8y53vth7wmptmlw8zxx67cx7c3pwj8sqs6zl0wr"
85-
},
86-
"metadata": {
87-
"staking_credential": {
88-
"hex_bytes": "fdbee86a702c49d23f45ab80e697b93ec48b744d5f413ef59c338c3f7b2d2de8",
89-
"curve_type": "edwards25519"
90-
},
91-
"drep": {
92-
"id": "f72050aa252ccc6bf75747184910c0b9386298167656f935d6b6c26a",
93-
"type": "key_hash"
94-
}
95-
}
9677
}
9778
],
9879
"account_identifier_signers": []

tests/integration/golden_examples/rosetta_java/construction/parse/drep_vote_delegation/drep_delegation_no_confidence.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,6 @@
7373
"type": "no_confidence"
7474
}
7575
}
76-
},
77-
{
78-
"operation_identifier": {
79-
"index": 2
80-
},
81-
"type": "dRepVoteDelegation",
82-
"account": {
83-
"address": "stake_test1uql3k2h9kskfma8y53vth7wmptmlw8zxx67cx7c3pwj8sqs6zl0wr"
84-
},
85-
"metadata": {
86-
"staking_credential": {
87-
"hex_bytes": "fdbee86a702c49d23f45ab80e697b93ec48b744d5f413ef59c338c3f7b2d2de8",
88-
"curve_type": "edwards25519"
89-
},
90-
"drep": {
91-
"type": "no_confidence"
92-
}
93-
}
9476
}
9577
],
9678
"account_identifier_signers": []

tests/integration/golden_examples/rosetta_java/construction/parse/drep_vote_delegation/drep_delegation_script_hash.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@
7474
"type": "script_hash"
7575
}
7676
}
77-
},
78-
{
79-
"operation_identifier": {
80-
"index": 2
81-
},
82-
"type": "dRepVoteDelegation",
83-
"account": {
84-
"address": "stake_test1uql3k2h9kskfma8y53vth7wmptmlw8zxx67cx7c3pwj8sqs6zl0wr"
85-
},
86-
"metadata": {
87-
"staking_credential": {
88-
"hex_bytes": "fdbee86a702c49d23f45ab80e697b93ec48b744d5f413ef59c338c3f7b2d2de8",
89-
"curve_type": "edwards25519"
90-
},
91-
"drep": {
92-
"id": "2d4cb680b5f400d3521d272b4295d61150e0eff3950ef4285406a953",
93-
"type": "script_hash"
94-
}
95-
}
9677
}
9778
],
9879
"account_identifier_signers": []

tests/integration/golden_examples/rosetta_java/construction/parse/drep_vote_delegation/drep_id_provided_for_abstain.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,6 @@
7373
"type": "abstain"
7474
}
7575
}
76-
},
77-
{
78-
"operation_identifier": {
79-
"index": 2
80-
},
81-
"type": "dRepVoteDelegation",
82-
"account": {
83-
"address": "stake_test1uql3k2h9kskfma8y53vth7wmptmlw8zxx67cx7c3pwj8sqs6zl0wr"
84-
},
85-
"metadata": {
86-
"staking_credential": {
87-
"hex_bytes": "fdbee86a702c49d23f45ab80e697b93ec48b744d5f413ef59c338c3f7b2d2de8",
88-
"curve_type": "edwards25519"
89-
},
90-
"drep": {
91-
"id": "f72050aa252ccc6bf75747184910c0b9386298167656f935d6b6c26a",
92-
"type": "abstain"
93-
}
94-
}
9576
}
9677
],
9778
"account_identifier_signers": []

0 commit comments

Comments
 (0)