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
"Contract code size exceeds 24576 bytes (a limit introduced in Spurious Dragon). "
"This contract may not be deployable on mainnet. "
"Consider enabling the optimizer (with a low \"runs\" value!), "
"turning off revert strings, or using libraries."
To I guess something like this:
(
string("Contract code size = ") +
std:to_string(compiledContract.runtimeObject.bytecode.size()) +
" > 24576 bytes (a limit introduced in Spurious Dragon). "
"This contract may not be deployable on mainnet. "
"Consider enabling the optimizer (with a low \"runs\" value!), "
"turning off revert strings, or using libraries."
).c_str()
Thanks :)
The text was updated successfully, but these errors were encountered:
Haha, it's not saying that it's first issue reported by you but that it's a good candidate to be picked as a first issue by a contributor :) With this label it will appear under https://github.com/ethereum/solidity/contribute and we have Hacktoberfest now so there's a high change that someone will pick it up soon. That's generally a good thing because these easy issues do not usually have a high priority (there are just too many of them).
Abstract
When a contract exceeds the maximum size (24K), it would be very helpful to know the actual size of that specific contract.
Motivation
Allowing the developer to perform a more efficient process of reducing the "rogue" contract.
Specification
In https://github.com/ethereum/solidity/blob/develop/libsolidity/interface/CompilerStack.cpp#L1241-L1255, change this:
To I guess something like this:
Thanks :)
The text was updated successfully, but these errors were encountered: