Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

2 votes
Accepted

Utilize delegatecall to set values for struct fields

Both of the answers provided below are incorrect and doesn't provide the solution. The reason for this error is because your encoding is wrong. When we encode the function signature, we use full names ...
Zartaj Afser's user avatar
  • 4,221
0 votes

Utilize delegatecall to set values for struct fields

As, @Zartaj has mentioned, while calling encodeWithSignature, it won't recognise uint, rather it should be the complete name of the type i.e., uint256. But, even after doing this change, your code ...
SYED ASAD KAZMI's user avatar
0 votes

Delegatecall failing 'could not coalesce error'

You don't have to pass calldata in the argument while encoding the function signature of setmessage. Just remove calldata, it would work fine: (bool success, bytes memory data) = _original....
SYED ASAD KAZMI's user avatar

Top 50 recent answers are included