diff --git a/common/containers/Tabs/SignAndVerifyMessage/components/SignMessage/index.tsx b/common/containers/Tabs/SignAndVerifyMessage/components/SignMessage/index.tsx index c1c928dd..7d0e9acf 100644 --- a/common/containers/Tabs/SignAndVerifyMessage/components/SignMessage/index.tsx +++ b/common/containers/Tabs/SignAndVerifyMessage/components/SignMessage/index.tsx @@ -1,7 +1,6 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { CopyToClipboard } from 'react-copy-to-clipboard'; - import translate, { translateRaw } from 'translations'; import { ISignedMessage } from 'libs/signing'; import { IFullWallet } from 'libs/wallet'; @@ -31,6 +30,16 @@ const initialState: State = { message: Principles }; +const postToWhisper = signedMessage => { + const msg = JSON.stringify(signedMessage, null, 2); + window.opener.postMessage( + {type: 'whisperMsg', msg, channel: 'mytest' }, + '*' + ); + + + +} const messagePlaceholder = translateRaw('SIGN_MSG_PLACEHOLDER'); export class SignMessage extends Component { @@ -48,63 +57,66 @@ export class SignMessage extends Component { return (
{unlocked ? ( -
- +
+ -
-