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:
parent
e7c8336d77
commit
7cfac40026
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user