Skip to content

Commit d52926f

Browse files
committed
Fix usage of Blockfrost
1 parent be8d0cf commit d52926f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pycardano/backend/blockfrost.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,11 @@ def evaluate_tx_cbor(self, cbor: Union[bytes, str]) -> Dict[str, ExecutionUnits]
293293
raise TransactionFailedException(result)
294294
else:
295295
for k in vars(result.EvaluationResult):
296-
return_val[k] = ExecutionUnits(
296+
if k.startswith("withdraw"):
297+
key = "withdrawal" + k[len("withdraw"):]
298+
else:
299+
key = k
300+
return_val[key] = ExecutionUnits(
297301
getattr(result.EvaluationResult, k).memory,
298302
getattr(result.EvaluationResult, k).steps,
299303
)

0 commit comments

Comments
 (0)