--

Quick question, why are you doing this?

`let funcSelector := shr( 32, slot2)`

Wouldn't that result in 0x00000000773d45e0? (the signature with 8 zeroes in front of it. Then you're storing that at 0x00 (scratch space)

So at 0x00 there will be 32 bytes like so:

0x00000000773d45e0000000000000000000000000000000000000000000000000

Then you're doing a static call starting from 0x1c, which is empty. Why is that? I don't get it...

--

--

Merunas Grincalaitis
Merunas Grincalaitis

Written by Merunas Grincalaitis

Blockchain expert. Join my email list here to receive new articles every few months https://merunasgrincalaitis.medium.com/subscribe

Responses (1)