Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@nomicfoundation/slang@1.2.1
Patch Changes
#1377
f3b51be
Thanks @ggiraldez! - Bind untyped tuple deconstruction elements as references, not declarations#1335
6c3ad5d
Thanks @ggiraldez! - Top-levelConstantDefinition
s now bind to their type and resolve extension functions called on them#1338
18be0bc
Thanks @ggiraldez! - Make try/catch parameters and vars in for loop initialization available in Yul#1339
f16e4b5
Thanks @ggiraldez! - Fixes to the binding rules in Solidity:.length
member available in all static-size byte arraysmsg.sender
is ofaddress
type (notpayable
) until 0.5.0#1353
8e718dd
Thanks @ggiraldez! - Fixes to the binding rules in Solidity:byte
type have alength
member until 0.8.0Foo.x
in a method body ofFoo
bool
type to chain extension functions.selector
)selector
member#1326
045179b
Thanks @ggiraldez! - Fixes to binding rules:TupleDeconstructionStatement
so that their definiens is theTypedTupleMember
/UntypedTupleMember
for each variable declared.YulVariableDeclarationStatement
so that their definiens is theYulIdentifier
for each variable declared.#1350
0594fe8
Thanks @ggiraldez! - Fixes to bindings rules in Solidity:using
directives inside interfaces in Solidity < 0.7.1memory
location specifier from types so they bind properlyvalue()
andgas()
legacy call options to allow chaining themnew
expressionsusing
directive with theglobal
modifier should impact the source unit's lexical scopetransfer()
method works for non-payable addresses; this is a workaround for a Solidity quirk that makes it possible to doaddress(uint160(to)).transfer(amount)
even after 0.5.0wrap()
andunwrap()
methods of a user value defined typemin()
andmax()
oftype()
expressions for integer types to the integer type given in the expression operandtype(Enum).min
andtype(Enum).max
#1321:min()
andmax()
fortype()
expressions onenum
types should bind only after Solidity 0.8.8uint256
by default; this allows correctly binding extension methods operating on literal valuesbytes
is an array type and should bind thepush()
andpop()
methodsaddress
type on Solidity < 0.5.0this
in function methods and work as anaddress
type