From e35733a9940bf021b8a8751fce379def085e8532 Mon Sep 17 00:00:00 2001 From: Ana G <40721795+Bitcoinera@users.noreply.github.com> Date: Fri, 8 May 2020 21:19:06 +0200 Subject: [PATCH] Ana/display kusama fees in extension (#216) * display kusama fees in extension * changelog * simplify * make friendly --- pending/ana_4008-display-kusama-fees | 1 + src/scripts/parsers.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 pending/ana_4008-display-kusama-fees diff --git a/pending/ana_4008-display-kusama-fees b/pending/ana_4008-display-kusama-fees new file mode 100644 index 0000000000..d6bee150cd --- /dev/null +++ b/pending/ana_4008-display-kusama-fees @@ -0,0 +1 @@ +[Changed] [#216](https://github.com/cosmos/lunie/pull/216) Displays also Kusama fees @Bitcoinera \ No newline at end of file diff --git a/src/scripts/parsers.js b/src/scripts/parsers.js index 536ffd50b3..dd486a20c3 100644 --- a/src/scripts/parsers.js +++ b/src/scripts/parsers.js @@ -24,6 +24,14 @@ export function getDisplayTransaction( } ] } + if (network.network_type === 'polkadot' && !!transactionData.fee) { + fees = [ + { + amount: transactionData.fee.amount, + denom: transactionData.fee.denom + } + ] + } return { type: messageType, details: message,