Skip to content

Commit

Permalink
Support deposit ETH
Browse files Browse the repository at this point in the history
  • Loading branch information
ducthotran2010 committed Jun 28, 2022
1 parent 9a3c509 commit 9703873
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/v0.8/mainchain/MainchainGatewayV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ contract MainchainGatewayV2 is WithdrawalLimitation, Initializable, AccessContro
require(_request.info.quantity == msg.value, "MainchainGatewayV2: invalid request");
_token = getRoninToken(_weth);
require(_token.erc == _request.info.erc, "MainchainGatewayV2: invalid token standard");
_request.tokenAddr = _weth;
} else {
require(msg.value == 0, "MainchainGatewayV2: invalid request");
_token = getRoninToken(_request.tokenAddr);
Expand Down

0 comments on commit 9703873

Please sign in to comment.