mirror of
https://github.com/trezor/trezor-wallet
synced 2025-03-20 18:16:10 +00:00
fix connect version
This commit is contained in:
parent
56d2b8a0f7
commit
5e830b86c4
@ -80,7 +80,7 @@
|
||||
"styled-components": "^4.1.3",
|
||||
"styled-normalize": "^8.0.6",
|
||||
"trezor-bridge-communicator": "1.0.2",
|
||||
"trezor-connect": "7.0.2-electron.4",
|
||||
"trezor-connect": "7.0.2",
|
||||
"trezor-ui-components": "^1.0.0-beta.12",
|
||||
"wallet-address-validator": "^0.2.4",
|
||||
"web3": "1.0.0-beta.35",
|
||||
|
@ -155,7 +155,7 @@ export const init = (): AsyncAction => async (
|
||||
if (buildUtils.isDev()) {
|
||||
// eslint-disable-next-line
|
||||
window.__TREZOR_CONNECT_SRC =
|
||||
typeof LOCAL === 'string' ? LOCAL : 'https://sisyfos.trezor.io/connect-electron/'; // eslint-disable-line no-underscore-dangle
|
||||
typeof LOCAL === 'string' ? LOCAL : 'https://sisyfos.trezor.io/connect/'; // eslint-disable-line no-underscore-dangle
|
||||
// window.__TREZOR_CONNECT_SRC = typeof LOCAL === 'string' ? LOCAL : 'https://localhost:8088/'; // eslint-disable-line no-underscore-dangle
|
||||
window.TrezorConnect = TrezorConnect;
|
||||
}
|
||||
|
@ -94,11 +94,9 @@ const Log = (props: Props) => {
|
||||
</LogWrapper>
|
||||
{props.log.copied ? (
|
||||
<Tooltip
|
||||
defaultVisible
|
||||
maxWidth={285}
|
||||
placement="top"
|
||||
content={<FormattedMessage {...l10nMessages.TR_COPIED} />}
|
||||
afterVisibleChange={props.resetCopyState}
|
||||
>
|
||||
{copyBtn}
|
||||
</Tooltip>
|
||||
|
@ -120,8 +120,15 @@ type UiEventAction = {
|
||||
// },
|
||||
};
|
||||
|
||||
// TODO: join this message with uiMessage
|
||||
type IFrameHandshake = {
|
||||
type: 'iframe_handshake',
|
||||
payload: any,
|
||||
};
|
||||
|
||||
export type Action =
|
||||
| RouterAction
|
||||
| IFrameHandshake
|
||||
| TransportEventAction
|
||||
| DeviceEventAction
|
||||
| UiEventAction
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* @flow */
|
||||
import { TRANSPORT, IFRAME } from 'trezor-connect';
|
||||
import { TRANSPORT, UI } from 'trezor-connect';
|
||||
import * as CONNECT from 'actions/constants/TrezorConnect';
|
||||
|
||||
import type { Action } from 'flowtype';
|
||||
@ -66,7 +66,7 @@ export default function connect(state: State = initialState, action: Action): St
|
||||
error: action.error,
|
||||
};
|
||||
// trezor-connect iframe loaded
|
||||
case IFRAME.LOADED:
|
||||
case UI.IFRAME_HANDSHAKE:
|
||||
return {
|
||||
...state,
|
||||
initialized: true,
|
||||
|
@ -11140,10 +11140,10 @@ trezor-bridge-communicator@1.0.2:
|
||||
request "^2.88.0"
|
||||
whatwg-fetch "^3.0.0"
|
||||
|
||||
trezor-connect@7.0.2-electron.4:
|
||||
version "7.0.2-electron.4"
|
||||
resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-7.0.2-electron.4.tgz#2fad96f11f0136dada5ae6a4dbc4a24b8408a131"
|
||||
integrity sha512-c+DyAnaSI5GeSw7ETSK3CzekDsHR2vI5qltNavpmg8B16aBLvyeL89VCkXZQrxdZGESvO5/vcOMbr1Rdp/sGPQ==
|
||||
trezor-connect@7.0.2:
|
||||
version "7.0.2"
|
||||
resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-7.0.2.tgz#8b1b0d1b3b6dc6564bc3d22fe8f54ba826f2a242"
|
||||
integrity sha512-KAFOqxEHHaFvrG8NGLFlM/QxHcwIa3gwfXcgTjCYM0g0zRpwIQBwe35AKsjAQO5yiTJQGa0Cu5MZufGJRGYjjw==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.3.1"
|
||||
events "^3.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user