Skip to content

Commit

Permalink
(proxy): make proxy no longer payable, because they should never rece…
Browse files Browse the repository at this point in the history
…ive xDAI
  • Loading branch information
benjaminbollen committed Aug 7, 2024
1 parent 8547231 commit dbf332b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/proxy/Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ contract Proxy {
}

/// @dev Fallback function forwards all transactions and returns all received return data.
fallback() external payable {
/// The fallback function is not payable because at no plpointace in Circles do these proxy contracts
/// need to receive xDAI (on Gnosis Chain, or Ether if they are deployed on Ethereum)
fallback() external {
// solhint-disable-next-line no-inline-assembly
assembly {
let _singleton := sload(0)
Expand Down

0 comments on commit dbf332b

Please sign in to comment.