Avoid Re-Adding Resources When Estimate TX At Account.getTransactionCost
#2983
Labels
bug
Issue is a bug
Account.getTransactionCost
#2983
While implementing the
getTransactionCost
at the Account class on #2643, we forgot to replicate the same logic that it had before when adding fake resources to a TX dry-run execution.The previous approach involved updating the amounts of existing resources rather than adding new ones.
As a result, this change led to the
gasUsed
being slightly higher when runninggetTransactionCost
for a transaction that had already been funded.The text was updated successfully, but these errors were encountered: