(func)
| 19 | |
| 20 | // get function selector from function signature |
| 21 | function getSelector(func) { |
| 22 | const abiInterface = new ethers.utils.Interface([func]) |
| 23 | return abiInterface.getSighash(ethers.utils.Fragment.from(func)) |
| 24 | } |
| 25 | |
| 26 | // used with getSelectors to remove selectors from an array of selectors |
| 27 | // functionNames argument is an array of function signatures |