From a3ae00ce73a4114ae2b2f3b142e638a807c74902 Mon Sep 17 00:00:00 2001 From: "nikolay.natorin" Date: Wed, 2 Dec 2020 20:50:41 +0200 Subject: [PATCH] fix app crash on wallet address request --- src/screens/ChatScreen/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/screens/ChatScreen/index.js b/src/screens/ChatScreen/index.js index 5ee4aeb3..d0be9e89 100644 --- a/src/screens/ChatScreen/index.js +++ b/src/screens/ChatScreen/index.js @@ -120,14 +120,16 @@ const ChatScreen = ({ text: 'Yes', onPress: () => { const { privateKey } = fromWif(addressWif, testnet); - const signedMessage = signMessage(params.messageToSign, { testnet, privateKey }); + const signedMessage = signMessage(data.messageToSign, { testnet, privateKey }); const message = Buffer.from(JSON.stringify(signedMessage)).toString('base64'); onSend([{ text: `[Signed message](signed-message:${message})` }]); }, }, ]); }} - >{`\"${messageToSign}\"`} + > + {`\"${messageToSign}\"`} + ) : {`Request to sign message: \"${messageToSign}\"`}