From 9703873783dc0188792248aadaa720fb09c5d8d1 Mon Sep 17 00:00:00 2001 From: Duc Tho Tran Date: Tue, 28 Jun 2022 11:48:28 +0700 Subject: [PATCH] Support deposit ETH --- contracts/v0.8/mainchain/MainchainGatewayV2.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/v0.8/mainchain/MainchainGatewayV2.sol b/contracts/v0.8/mainchain/MainchainGatewayV2.sol index d2e7efb..904bad5 100644 --- a/contracts/v0.8/mainchain/MainchainGatewayV2.sol +++ b/contracts/v0.8/mainchain/MainchainGatewayV2.sol @@ -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);