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
Hi friends,
In the tutorial around 1:05:20 Pattrick is showing examples of delgate call and proxies. In the previous example he showed how the storage variables changed in contract A when delagate call was done on a function in contract B. I understand this but then in the next example about proxies he has a similar setup where he calls delegate call on a function on an Implematation contract, which then updates the value of storage slot [0]. The part i'm confused about is that the smallproxy contract has a storage variable at slot [0] called _IMPLEMENTAION_SLOT which is an address, how is this slot not overriden when the setValue() is called because that function sets the storage value to the input given with the function call. If someone could explain this please, that would be great.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi friends,
In the tutorial around 1:05:20 Pattrick is showing examples of delgate call and proxies. In the previous example he showed how the storage variables changed in contract A when delagate call was done on a function in contract B. I understand this but then in the next example about proxies he has a similar setup where he calls delegate call on a function on an Implematation contract, which then updates the value of storage slot [0]. The part i'm confused about is that the smallproxy contract has a storage variable at slot [0] called _IMPLEMENTAION_SLOT which is an address, how is this slot not overriden when the setValue() is called because that function sets the storage value to the input given with the function call. If someone could explain this please, that would be great.
Beta Was this translation helpful? Give feedback.
All reactions