minted_amount
vs new_contract_balance
in the receipt of MINT
#106
Closed
IaroslavMazur
started this conversation in
Spec
Replies: 1 comment
-
No particular reason. I just produced a conjecture on the spot. Happy to use the minted amount instead per the argument you have put forth. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This discussion is in relation to the following @PaulRBerg's idea in #8:
@PaulRBerg, why the new total balance - and not the minted amount, though?
Here are several arguments for the latter:
Communicating the new total balance runs the risc of being confusing for the consumers of this log/receipt.
"Reverting" the effects of a tx that couldn't have executed until the end, in
revm
, is performed, from what I've observed, by manually undoing the respective operations (e.g. crediting the transferred assets back to the Sender and debiting them from the Recipient, in the contect of a simple asset transfer tx).The total balance of the contract could be fetched separately from the VM, by anyone interested in it.
Note: originally, I've implemented the
JournalEntry::AssetsMinted
receipt to include the "new total balance" of the minter, but, then, having had the above considerations (especially the 2nd one), I've changed it to the "minted amount".Originally posted by @IaroslavMazur in #8 (comment)
Beta Was this translation helpful? Give feedback.
All reactions