You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…s. (#1260)
### What
Fix the invoker contract auth rollback logic and cover it in the tests.
Besides the 'obvious' issue of missing the code that actually performs
rollback, there was much more subtle issue of incorrect ordering between
`rollback` and `pop_frame`. To avoid this I've moved the
snapshots/rollbacks to the auth manager, so that it's not possible to
accidentally mess up that order.
Resolves#1252
### Why
Bug fix/adding tests
### Known limitations
N/A
The tests should ensure that:
try_call
afterauthorize_as_curr_contract
still consumes invoker contract auth entries (which prevent accidental reuse of authorization)try_call
deeper in the call tree has the authorization rolled back and reusable (consistently with account-based authorizations)The text was updated successfully, but these errors were encountered: