Add memory safe assembly annotations (#3384)

Co-authored-by: Nate <nate@Nates-MacBook-Pro.local>
This commit is contained in:
Nate Lapinski
2022-05-24 03:37:08 +09:00
committed by GitHub
parent c019e7c5bb
commit 65b45726b3
8 changed files with 14 additions and 1 deletions

View File

@ -283,6 +283,7 @@ library EnumerableSet {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
@ -356,6 +357,7 @@ library EnumerableSet {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}