Skip to main content

Timeline for Get return data from delegatecall

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
Mar 24, 2019 at 13:17 comment added thefett did you ever figure this out, have the same problem?
Aug 23, 2018 at 9:51 comment added Nico Vergauwen Still struggling :)
Aug 23, 2018 at 1:22 comment added Tjaden Hess Once you get the whole thing figured out, it would be nice if you could post an answer with what you found out, to help future users
Aug 22, 2018 at 21:27 comment added Nico Vergauwen so sload(<position>) won't work because it's a struct. I figured that out I think.
Aug 22, 2018 at 19:43 comment added Nico Vergauwen Still facing an empty array being returned :( ethfiddle.com/p0PdFSXF4v && ethfiddle.com/7_7N8SuhF2
Aug 22, 2018 at 17:22 comment added Nico Vergauwen Thanks I think I can manage now. Cool that will help me on my way! I just need to split calldatacopy at the 4th byte (ending of the signature) and put my _bounty in between. I'll try figuring something out later tonight. Thanks for the help!
Aug 22, 2018 at 17:13 comment added Tjaden Hess calldatacopy(add(_message, 36), 100, sub(calldatasize,100)) or something similar workshould
Aug 22, 2018 at 17:09 comment added Nico Vergauwen But I can't just do calldatacopy(_message, 0, calldatasize) , can I ? Wouldn't that overwrite the _sig and _bounty already stored in memory there? Here are all the contracts for a little more context: gist.github.com/kyriediculous/fd070786ce981a64a981e73487ba73ec
Aug 22, 2018 at 17:04 comment added Tjaden Hess calldatacopy can copy to anywhere in memory, including copying right after storage
Aug 22, 2018 at 17:00 comment added Nico Vergauwen The isue with calldatacopy is that I would need to encode my storage before the calldata still. I'm not sure this is possible that way? So I essentially need to construct a new message in my forward function consisting out of Signature + Storage + Calldata
Aug 22, 2018 at 16:09 history answered Tjaden Hess CC BY-SA 4.0