frangio / hardhat-exposed

Automatically expose internal Solidity functions for smart contract testing.
82 stars 13 forks source link

Private functions cannot be externalized #10

Closed Amxx closed 1 year ago

Amxx commented 1 year ago

Right now, the plugin will try to expose private functions in libraries.

There are two options to fix that:

  1. Change the getFunctions semantics so that subset could be public,internal or !private
  2. Don't change the getFunctions, and just mark the private functions as non exposable.

This PR implements the 2nd option.