From 6b760c7e61f9721003e81019e2f877dff9a9d94e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 9 Dec 2019 13:54:56 +0100 Subject: [PATCH] Fixup claims pay message via consts (#2018) * Fixup claims pay message via consts * Remove unused --- packages/app-claims/src/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/app-claims/src/index.tsx b/packages/app-claims/src/index.tsx index 6d4fa9c6c0..164e99b1fa 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'; @@ -103,7 +102,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) ) : '';