You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By simply doing this, I get an additional src folder generated in the out folder after running forge build:
Why is that?
I did expect the output folder to contain the ABI for the Address utility from OpenZeppelin, but I do not understand why it is placed in src/utils folder in the out folder.
I did another test in a repo with a clean slate (my foundry-template) where I re-wrote the Foo contract like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am importing and inheriting from OpenZeppelin's
ERC721
implementation, like this:By simply doing this, I get an additional
src
folder generated in theout
folder after runningforge build
:Why is that?
I did expect the output folder to contain the ABI for the
Address
utility from OpenZeppelin, but I do not understand why it is placed insrc/utils
folder in theout
folder.I did another test in a repo with a clean slate (my foundry-template) where I re-wrote the
Foo
contract like this:Yet again, a
src
folder was generated inout
, but now there wasn't theAddress
in there, but rather theVm
andVmSafe
interfaces:In both cases, I would have expected the ABIs found in
src
to be at the same level with the other ABIs.Beta Was this translation helpful? Give feedback.
All reactions