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
getAddressFromSlot() is both used to set addresses into precalculated storage slots (returning a reference of the AddressSlot struct), and to get addresses stored into that slot. I guess it would be better to separate the setter from the getter, which I've already done in the code below. There's no need to reassign the storage slot of the struct everytime we need to read the value.
The text was updated successfully, but these errors were encountered:
getAddressFromSlot() is both used to set addresses into precalculated storage slots (returning a reference of the AddressSlot struct), and to get addresses stored into that slot. I guess it would be better to separate the setter from the getter, which I've already done in the code below. There's no need to reassign the storage slot of the struct everytime we need to read the value.
The text was updated successfully, but these errors were encountered: