We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeddc1f commit 5fe1002Copy full SHA for 5fe1002
pycardano/txbuilder.py
@@ -952,6 +952,11 @@ def build(
952
requested_amount = Value()
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(multi_asset=MultiAsset({pid: Asset({tkn: -am})}))
960
961
# Include min fees associated as part of requested amount
962
requested_amount += self._estimate_fee()
0 commit comments