Closed SonOfMosiah closed 1 year ago
George and I have compiled what we have with no issues, did you add some code to the contracts?
I dont see it either
[root@big darwin]# npx hardhat compile
Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier:
Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier:
Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier:
Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier:
I'm only seeing the error when I run npx hardhat coverage
Perhaps the coverage command compiles the contracts differently?
Running on the master branch no changes.
Yeah hardhat coverage does add code to the contracts so that makes sense. Its pretty cool how it works, it emits an event before each line, then monitors each event emitted during the tests to book keep whats been called or not.
On Mon., Dec. 5, 2022, 3:33 p.m. SonOfMosiah, @.***> wrote:
Running on the master branch no changes.
— Reply to this email directly, view it on GitHub https://github.com/Darwin-Coin/darwin-token-contracts/issues/48#issuecomment-1338130480, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX6WTXQZWSX3ZITGXQTRRKTWLZGSJANCNFSM6AAAAAASUVUO3Y . You are receiving this because you commented.Message ID: @.***>
Sounds like this is a non issue then.
Closing as this is not a bug, but a consequence of the code injected when running the coverage command.
Currently Darwin.sol, DarwinPresale.sol, and DarwinCommunity.sol exceed the contract code size limit set in the SpuriousDragon hardfork (24576 bytes).
We can drop the optimizer runs down to 1 and use the ir compiler to help, but we'll need to externalize or remove code in several files to make these contracts deployable.