balancer / balancer-v3-monorepo

GNU General Public License v3.0
45 stars 17 forks source link

Factor out staticcall prank in query tests #766

Closed EndymionJkb closed 4 months ago

EndymionJkb commented 4 months ago

Description

It took us a second to successfully prank static calls (you have to set the tx.origin to 0 as well, which is the seldom-used second argument to prank), and we weren't commenting that consistently.

This PR factors out that prank call (and comment) to an internal function of BaseVaultTest, so that we can just say _prankStaticCall(); everywhere.

Type of change

Checklist:

Issue Resolution