Skip to content

Commit

Permalink
One more comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Aug 25, 2023
1 parent 2b731ff commit d5d33c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bridge/ERC20Inbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ contract ERC20Inbox is AbsInbox, IERC20Inbox {
bytes32 messageDataHash,
uint256 tokenAmount
) internal override returns (uint256) {
// fetch native token from sender if inbox doesn't already hold enough tokens to pay for fees
// Fetch native token from sender if inbox doesn't already hold enough tokens to pay for fees.
// Inbox might have been pre-funded in prior call, ie. as part of token bridging flow.
address nativeToken = IERC20Bridge(address(bridge)).nativeToken();
uint256 inboxNativeTokenBalance = IERC20(nativeToken).balanceOf(address(this));
if (inboxNativeTokenBalance < tokenAmount) {
Expand Down

0 comments on commit d5d33c2

Please sign in to comment.