New answers tagged

0 votes

How to link deployed library to contract in brownie?

According to the Brownie docs, if a contract requires a library, Brownie will automatically link to the most recently deployed one. In other words, Brownie will not automatically link to the most ...
0 votes

Large Size Disparity Between Contract and Its Library Wrapper

So I found out why. It turns out the sauce is in the constructor. Any imports needed for executing the code in the constructor, will be imported to the wrapping library. In my specific case, the ...
1 vote
Accepted

Should I use Embedded Library (Internal) or Linked Library (External) to save gas?

The answer isn't straightforward, one is not necessarily better than the other Embedded libraries will be more expensive to deploy, since the code is being included with every contract deployment, but ...
  • 11.1k

Top 50 recent answers are included