File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 11### 0.8.35 (unreleased)
22
33Language Features:
4+ * Custom Storage Layout: Allow signed positive expressions.
45* General: Add a builtin that computes the base slot of a storage namespace using the ` erc7201 ` formula from ERC-7201.
56
67Compiler Features:
Original file line number Diff line number Diff line change @@ -181,18 +181,6 @@ void PostTypeContractLevelChecker::checkStorageLayoutSpecifier(ContractDefinitio
181181 return ;
182182 }
183183
184- if (!baseSlotExpressionType->isImplicitlyConvertibleTo (*TypeProvider::uint256 ()))
185- {
186- m_errorReporter.typeError (
187- 1481_error,
188- baseSlotExpression.location (),
189- fmt::format (
190- " Base slot expression of type '{}' is not convertible to uint256." ,
191- baseSlotExpressionType->humanReadableName ()
192- )
193- );
194- return ;
195- }
196184 storageLayoutSpecifier->annotation ().baseSlot = u256 (baseSlot);
197185
198186 bigint size = contractStorageSizeUpperBound (_contract, VariableDeclaration::Location::Unspecified);
You can’t perform that action at this time.
0 commit comments