From e11d13916f179d94543ab406f9e8d4adcc8c8964 Mon Sep 17 00:00:00 2001 From: Tatiana Date: Fri, 3 Nov 2023 18:32:28 +0200 Subject: [PATCH 1/3] fix invalid character, updates in BN lib --- ui/wallet/src/ProxeusEthereum/MetamaskUtil.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js b/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js index ce0f6ebb0..426ec04d3 100644 --- a/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js +++ b/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js @@ -16,10 +16,10 @@ class MetamaskUtil { szabo: '1000000', finney: '1000', ether: '1', - kether: '0.001', - mether: '0.000001', - gether: '0.000000001', - tether: '0.000000000001' + kether: 0.001, + mether: 0.000001, + gether: 0.000000001, + tether: 0.000000000001 } this.multiple = new this.ethUtil.BN('10000', 10) From b8056f097dce8c2a1ab09954cabf32c51392e4c8 Mon Sep 17 00:00:00 2001 From: Tatiana Date: Fri, 3 Nov 2023 18:37:04 +0200 Subject: [PATCH 2/3] fix invalid character, updates in BN lib --- ui/wallet/src/ProxeusEthereum/MetamaskUtil.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js b/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js index 426ec04d3..5f248a02a 100644 --- a/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js +++ b/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js @@ -9,13 +9,13 @@ class MetamaskUtil { this.MIN_GAS_PRICE_BN = this.MIN_GAS_PRICE_GWEI_BN.mul(this.GWEI_FACTOR) this.valueTable = { - wei: '1000000000000000000', - kwei: '1000000000000000', - mwei: '1000000000000', - gwei: '1000000000', - szabo: '1000000', - finney: '1000', - ether: '1', + wei: 1e18, + kwei: 1e15, + mwei: 1e12, + gwei: 1e9, + szabo: 1e6, + finney: 1e3, + ether: 1, kether: 0.001, mether: 0.000001, gether: 0.000000001, From e1ac271e891993809191d2fc3367f684fd1ac7e9 Mon Sep 17 00:00:00 2001 From: Tatiana Date: Fri, 3 Nov 2023 18:56:09 +0200 Subject: [PATCH 3/3] fix invalid character, updates in BN lib, revert to string and numbers format --- ui/wallet/src/ProxeusEthereum/MetamaskUtil.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js b/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js index 5f248a02a..02aac5c7d 100644 --- a/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js +++ b/ui/wallet/src/ProxeusEthereum/MetamaskUtil.js @@ -9,12 +9,12 @@ class MetamaskUtil { this.MIN_GAS_PRICE_BN = this.MIN_GAS_PRICE_GWEI_BN.mul(this.GWEI_FACTOR) this.valueTable = { - wei: 1e18, - kwei: 1e15, - mwei: 1e12, - gwei: 1e9, - szabo: 1e6, - finney: 1e3, + wei: '1000000000000000000', + kwei: '1000000000000000', + mwei: '1000000000000', + gwei: '1000000000', + szabo: '1000000', + finney: '1000', ether: 1, kether: 0.001, mether: 0.000001,