Skip to content

Commit

Permalink
fix: getReturnData
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va committed Feb 12, 2025
1 parent b2dab94 commit 9aaf0d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/batch/BatchCaller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ abstract contract BatchCaller is SelfAuth {
function getReturnData() private pure returns (bytes memory) {
assembly {
let size := returndatasize()
returndatacopy(0, 0, size)
return(0, size)
let data := mload(0x40)
returndatacopy(data, 0, size)
return(data, size)
}
}
}

0 comments on commit 9aaf0d6

Please sign in to comment.