From ac397369605f0050a0dc33ef7ad4a45740ed3847 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 9 Dec 2019 13:38:30 +0100 Subject: [PATCH 1/2] Fixup claims pay message via consts --- packages/app-claims/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-claims/src/index.tsx b/packages/app-claims/src/index.tsx index 6d4fa9c6c070..fe498dceb2b1 100644 --- a/packages/app-claims/src/index.tsx +++ b/packages/app-claims/src/index.tsx @@ -103,7 +103,7 @@ class App extends TxModal { const payload = accountId ? ( - u8aToString(Compact.stripLengthPrefix(api.consts.claims.prefix.toU8a(true))) + + u8aToString(api.consts.claims.prefix.toU8a(true)) + u8aToHex(decodeAddress(accountId), -1, false) ) : ''; From fde540de3925e966362c6fbbbd5509bb178b1ed8 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 9 Dec 2019 13:42:48 +0100 Subject: [PATCH 2/2] Remove unused --- packages/app-claims/src/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/app-claims/src/index.tsx b/packages/app-claims/src/index.tsx index fe498dceb2b1..164e99b1fad9 100644 --- a/packages/app-claims/src/index.tsx +++ b/packages/app-claims/src/index.tsx @@ -3,7 +3,6 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { Compact } from '@polkadot/types'; import { Balance, EcdsaSignature, EthereumAddress } from '@polkadot/types/interfaces'; import { AppProps, I18nProps } from '@polkadot/react-components/types'; import { ApiProps } from '@polkadot/react-api/types';