transience icon indicating copy to clipboard operation
transience copied to clipboard

Reentrancy protection with optional parameter

Open ShubhSensei opened this issue 1 year ago • 3 comments

#1

Reentrancy Protection

  • The child class cannot inherit the TransientReentrancyAware contract's modifier automatically.
  • Thus made a new modifier in the TransientContext contract itself.
  • The bytes32 key in the modifier is used to create separate locks, which do not interfere with each other to ensure atomic access.

ShubhSensei avatar Jun 23 '24 20:06 ShubhSensei

could we add tests for this @ShubhSensei?

0xfuturistic avatar Jun 25 '24 01:06 0xfuturistic

ping @ShubhSensei

pegahcarter avatar Jul 27 '24 16:07 pegahcarter

@pegahcarter would you like to give it a shot? you can make a new PR extending this one and adding tests

0xfuturistic avatar Aug 13 '24 00:08 0xfuturistic