Closed Amxx closed 1 year ago
Considerint the following contract
import "./token/ERC20/ERC20.sol"; contract Test is ERC20("name", "symbol") {}
hardhat-expose will produce
contract $Test is Test { bytes32 public __hh_exposed_bytecode_marker = "hardhat-exposed"; constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {} /// ... }
The result of the transpilation calls ERC20's constructor twice:
$Test
Test
It looks like Test's implicit constructor is not seen by the plugin.
Considerint the following contract
hardhat-expose will produce
The result of the transpilation calls ERC20's constructor twice:
$Test
explicit constructorTest
implicit constructor.It looks like
Test
's implicit constructor is not seen by the plugin.