Near-One / near-plugins

Implementation of common patterns used for NEAR smart contracts.
Creative Commons Zero v1.0 Universal
27 stars 12 forks source link

fix: super admin init in Pausable test contract #56

Closed mooori closed 1 year ago

mooori commented 1 year ago

The constructor of the test contract for Pausable adds the contract itself as Acl super admin. It was using predecessor_account_id(), though it should be current_account_id().

It didn't surface as bug in integration tests since there the constructor is called by the contract itself (so predecessor id equals current account id).