Skip to content

Commit

Permalink
fix: socket batcher
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeshaagrawal committed May 16, 2023
1 parent 46cc8d1 commit 250ef7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contracts/socket/SocketBatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ contract SocketBatcher is AccessControl {
address switchBoardAddress;
uint256 maxPacketLength;
uint32 siblingChainSlug;
uint32 capacitorType;
uint256 capacitorType;
}

/**
Expand Down Expand Up @@ -272,6 +272,9 @@ contract SocketBatcher is AccessControl {
++index;
}
}

if (address(this).balance > 0)
msg.sender.call{value: address(this).balance}("");
}

/**
Expand Down

0 comments on commit 250ef7d

Please sign in to comment.