1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 21:08:57 +00:00

Update parametr object when calling 'TrezorConnect.ethereumSignTransaction'

- to match a corresponding Flowtype
This commit is contained in:
Vasek Mlejnsky 2018-07-30 12:57:02 +02:00
parent e7c8336d77
commit 7cfac40026

View File

@ -830,6 +830,25 @@ export const onSend = (): AsyncAction => async (dispatch: Dispatch, getState: Ge
if (!selected) return;
const signedTransaction = await TrezorConnect.ethereumSignTransaction({
device: {
path: selected.path,
instance: selected.instance,
state: selected.state
},
useEmptyPassphrase: !selected.instance,
path: txData.address_n,
transaction: {
to: strip(txData.to),
value: strip(txData.value),
gasPrice: strip(txData.gasPrice),
gasLimit: strip(txData.gasLimit),
nonce: strip(txData.nonce),
data: strip(txData.data),
chainId: txData.chainId,
r: txData.r,
s: txData.s,
v: txData.v,
},
device: {
path: selected.path,
instance: selected.instance,