Skip to content

Commit

Permalink
Merge pull request #28 from ducthotran2010/support-deposit-eth
Browse files Browse the repository at this point in the history
Support deposit ETH
  • Loading branch information
hosyvietanh authored Jun 28, 2022
2 parents 3c15c0b + 9703873 commit 29e788d
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 29e788d

Please sign in to comment.