We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a4f040 commit bfa1773Copy full SHA for bfa1773
pycardano/txbuilder.py
@@ -953,12 +953,13 @@ def build(
953
for o in self.outputs:
954
requested_amount += o.amount
955
956
- for pid, m in self.mint.items():
957
- for tkn, am in m.items():
958
- if am < 0:
959
- requested_amount += Value(
960
- multi_asset=MultiAsset({pid: Asset({tkn: -am})})
961
- )
+ if self.mint:
+ for pid, m in self.mint.items():
+ for tkn, am in m.items():
+ if am < 0:
+ requested_amount += Value(
+ multi_asset=MultiAsset({pid: Asset({tkn: -am})})
962
+ )
963
964
# Include min fees associated as part of requested amount
965
requested_amount += self._estimate_fee()
0 commit comments