baking-bad / pytezos

🐍 Python SDK for Tezos | Michelson VM in Python
https://pytezos.org
MIT License
112 stars 38 forks source link

Suggestion: fill batch transaction with baker fee in only the first transaction #306

Closed chasdabigone closed 2 years ago

chasdabigone commented 2 years ago

Problem: when you build an operation group like pytezos.bulk(transaction1, transaction2).autofill(fee=10000) it will place the baker fee in every transaction in the bulk operation group. In most other operation groups on chain, the first transaction is the only one with a baker fee.

It makes more sense to make the baker fee be a single fee instead of multiplied by a possibly dynamic number of batched transactions (expensive)

Solution: Only populate the fee variable to the first transaction in a pytezos.bulk().autofill() operation