Access key allowance get charged for max allowed gas for tx instead what was spent #2523
Labels
A-transaction-runtime
Area: transaction runtime (transaction and receipts processing, state transition, etc)
Describe the bug
Access key allowance get charged for max allowed gas for tx instead what was spent.
My understanding (according to @evgenykuzyakov's investigation) is that we first charge attached gas per tx and then unspent gas gets refunded. It gets refunded for account, but not for access key allowance. This causes access key to run out of gas really quick.
To Reproduce
Try using any example app for a while with default gas settings from near-api-js.
Expected behavior
Access key allowance gets refunded for unspent gas.
The text was updated successfully, but these errors were encountered: