Skip to content

Commit

Permalink
[#312] Return value if staticcall to singleton succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Apr 11, 2024
1 parent bb02eca commit a016b8a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/passkey/contracts/SafeWebAuthnSignerProxyFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,10 @@ contract SafeWebAuthnSignerProxyFactory is ICustomECDSASignerFactory {
let dataLocation := add(data, 0x20)

let success := staticcall(gas(), _singleton, dataLocation, dataSize, 0, 0)
returndatacopy(magicValue, 0, returndatasize())
if iszero(success) {
// TODO
if eq(success, 1) {
returndatacopy(magicValue, 0, returndatasize())
return(0, returndatasize())
}
return(0, returndatasize())
}
}

Expand Down

0 comments on commit a016b8a

Please sign in to comment.