Commit 01edc0d
authored
Handle utxoCostPerByte vs coinsPerUtxoByte in cardano-cli chain context protocol params (#351)
* fix: use utxoCostPerByte if coinsPerUtxoByte not available in protocol parameters
* test: fix test to handle changes
* fix: set coins_per_utxo_byte to 0 if coinsPerUtxoByte or utxoCostPerByte not in protocol params
* fix: set coins_per_utxo_byte to 0 if utxoCostPerByte is None
* test: check coins_per_utxo_byte1 parent 20e8ed7 commit 01edc0d
File tree
3 files changed
+13
-8
lines changed- integration-test/test
- pycardano/backend
- test/pycardano/backend
3 files changed
+13
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 240 | + | |
| 241 | + | |
245 | 242 | | |
246 | 243 | | |
247 | 244 | | |
| |||
312 | 309 | | |
313 | 310 | | |
314 | 311 | | |
315 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
565 | 569 | | |
566 | 570 | | |
567 | 571 | | |
| |||
596 | 600 | | |
597 | 601 | | |
598 | 602 | | |
599 | | - | |
| 603 | + | |
| 604 | + | |
600 | 605 | | |
601 | 606 | | |
602 | 607 | | |
| |||
0 commit comments