From b8a0a5161acc07991b48e36516524f1af8a885e8 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Tue, 7 Jun 2022 00:39:23 +0300 Subject: [PATCH 1/2] Fixing ETH to CUDOS Success Receipt --- .../resources/common/js/models/ledgers/MetamaskLedger.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/resources/common/js/models/ledgers/MetamaskLedger.ts b/src/frontend/resources/common/js/models/ledgers/MetamaskLedger.ts index 038a024..a560f2f 100644 --- a/src/frontend/resources/common/js/models/ledgers/MetamaskLedger.ts +++ b/src/frontend/resources/common/js/models/ledgers/MetamaskLedger.ts @@ -85,7 +85,6 @@ export default class MetamaskLedger implements Ledger { erc20Instance.methods.approve(Config.ORCHESTRATOR.BRIDGE_CONTRACT_ADDRESS, stringAmount) .send({ from: account }, (err, transactionHash) => { - this.txHash = transactionHash; if (err) { reject(err); @@ -96,7 +95,7 @@ export default class MetamaskLedger implements Ledger { gravityContract.methods.sendToCosmos(Config.ORCHESTRATOR.ERC20_CONTRACT_ADDRESS, `0x${toHex(addressBytes32Array)}`, stringAmount).send({ from: account, gas: this.gas }) .on('receipt', (confirmationNumber, receipt) => { resolve(); - // console.log('receipt', confirmationNumber); + this.txHash = confirmationNumber.transactionHash; }) .on('error', (e) => { reject(); From 7e08ef14fba154fb6241e612379f8602e323732d Mon Sep 17 00:00:00 2001 From: avalkov Date: Tue, 7 Jun 2022 11:33:16 +0300 Subject: [PATCH 2/2] Fix bridge fee precision and typo --- .../resources/common/js/components-popups/PreFlightModal.tsx | 2 +- src/frontend/resources/common/js/models/ledgers/KeplrLedger.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/resources/common/js/components-popups/PreFlightModal.tsx b/src/frontend/resources/common/js/components-popups/PreFlightModal.tsx index 35bf9f9..ef9364c 100644 --- a/src/frontend/resources/common/js/components-popups/PreFlightModal.tsx +++ b/src/frontend/resources/common/js/components-popups/PreFlightModal.tsx @@ -42,7 +42,7 @@ const PreFlightModal = ({
diff --git a/src/frontend/resources/common/js/models/ledgers/KeplrLedger.ts b/src/frontend/resources/common/js/models/ledgers/KeplrLedger.ts index 6fd7af3..2062f26 100644 --- a/src/frontend/resources/common/js/models/ledgers/KeplrLedger.ts +++ b/src/frontend/resources/common/js/models/ledgers/KeplrLedger.ts @@ -193,7 +193,7 @@ export default class KeplrLedger implements Ledger { denom: CosmosNetworkH.CURRENCY_DENOM, }, bridgeFee: { - amount: this.bridgeFee.toString(), + amount: this.bridgeFee.toString(10), denom: CosmosNetworkH.CURRENCY_DENOM, }, },