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
We decided to keep returning the unpacked version because this approach shields consumers from the slot packing strategy we use, and allows us to potentially make other additions or changes to the struct without impacting the external ABI. Ideally we would be more consistent here and do the same when returning the ReserveAuction struct - however there is a 3rd party contract which has already created a dependency on the current ABI.
We agree with this change as it improves readability and will switch to delete pendingWithdrawals[user] here.
Wouldn't it be cheaper to do Offer memory offer = and then return (offer.buyer, offer.expiration, offer.amount)? The slot is warm, but still you should save about 300 gas.
Offer memory offer
and returnoffer
is cheaper.false
or0
)The text was updated successfully, but these errors were encountered: