transience
transience copied to clipboard
Reentrancy protection with optional parameter
#1
Reentrancy Protection
- The child class cannot inherit the
TransientReentrancyAwarecontract's modifier automatically. - Thus made a new modifier in the
TransientContextcontract itself. - The
bytes32 keyin the modifier is used to create separate locks, which do not interfere with each other to ensure atomic access.
could we add tests for this @ShubhSensei?
ping @ShubhSensei
@pegahcarter would you like to give it a shot? you can make a new PR extending this one and adding tests