Hey guys, compiling some large contracts with hardhat and getting "too large" errors. These contracts compile fine below the max size in remix with runs set to 200, but in hardhat I get the code size warnings. I'm clearly doing something stupid but my hardhat.config.js (which is in the folder I'm running hardhat from) has the following settings:

module.exports = {
solidity: "0.8.7",

settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
};

Anything obvious I need to change here?

Jan 24, 2022, 10:32 AM
solidity: {
version: "0.8.7",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
}
Jan 24, 2022, 10:37 AM
Ah, that was idiotic. Thank you sir
Jan 24, 2022, 11:22 AM
balanceOf return the amounts of nft hold
Jan 24, 2022, 11:29 AM
Tell me an example on GIT where you can see the implementation of 1 Smart Contract = a lot of NFT
Jan 24, 2022, 11:30 AM
what does it mean sorry?
there are tons of contracts
did you at least try to use google?
magic
Jan 24, 2022, 11:32 AM
Thanks, a go to google
This cols NFT toket on address?
Jan 24, 2022, 11:33 AM
yes
Jan 24, 2022, 11:36 AM

© 2024 Draquery.com All rights reserved.