From 89601e04527c417a448809adda1c89180fea4938 Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Tue, 18 Jun 2024 14:56:11 +0100 Subject: [PATCH 1/3] Set key on Coins element in proposal messages --- src/components/ProposalMessages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ProposalMessages.js b/src/components/ProposalMessages.js index e2f2e00d..b9268d92 100644 --- a/src/components/ProposalMessages.js +++ b/src/components/ProposalMessages.js @@ -48,8 +48,8 @@ function ProposalMessages(props) { return { ...data, amount: () => { - return data.amount.map(coin => { - return + return data.amount.map((coin, index) => { + return }) } } From a1d5484a24c5b5a266c14875a474d70cea913949 Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Tue, 18 Jun 2024 15:18:55 +0100 Subject: [PATCH 2/3] Handle new number format --- src/converters/Authz.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converters/Authz.mjs b/src/converters/Authz.mjs index bf843d9b..7d5625fd 100644 --- a/src/converters/Authz.mjs +++ b/src/converters/Authz.mjs @@ -37,7 +37,7 @@ function createAuthzAuthorizationAminoConverter(){ const dateConverter = { toAmino(date){ - return moment(date.seconds.toNumber() * 1000).utc().format() + return moment(Number(date.seconds) * 1000).utc().format() }, fromAmino(date){ return { From c4e92eeece2adc85d816a6328cd170caa6367b7a Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Tue, 18 Jun 2024 15:19:00 +0100 Subject: [PATCH 3/3] Fix variable usage --- src/utils/Helpers.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Helpers.mjs b/src/utils/Helpers.mjs index c43e0f80..5969a338 100644 --- a/src/utils/Helpers.mjs +++ b/src/utils/Helpers.mjs @@ -149,6 +149,6 @@ export function authzSupportMessage(wallet){ if (wallet.signerProvider.isLedger()){ return `${wallet.signerProvider.label} can't send Authz transactions with Ledger on ${wallet.network.prettyName} just yet.` }else{ - return `${wallet.props.wallet.signerProvider.label} can't send Authz transactions on ${wallet.network.prettyName} just yet.` + return `${wallet.signerProvider.label} can't send Authz transactions on ${wallet.network.prettyName} just yet.` } }