mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
remove comment
This commit is contained in:
parent
5995568e19
commit
4da23c1db2
@ -30,7 +30,7 @@ type EthereumTxRequest = {
|
|||||||
export const prepareEthereumTx = (tx: EthereumTxRequest): PromiseAction<EthereumTransaction> => async (dispatch: Dispatch): Promise<EthereumTransaction> => {
|
export const prepareEthereumTx = (tx: EthereumTxRequest): PromiseAction<EthereumTransaction> => async (dispatch: Dispatch): Promise<EthereumTransaction> => {
|
||||||
const instance = await dispatch(initWeb3(tx.network));
|
const instance = await dispatch(initWeb3(tx.network));
|
||||||
const { token } = tx;
|
const { token } = tx;
|
||||||
let data: string = ethUtils.sanitizeHex(tx.data); // TODO: check if already prefixed
|
let data: string = ethUtils.sanitizeHex(tx.data);
|
||||||
let value: string = toHex(EthereumjsUnits.convert(tx.amount, 'ether', 'wei'));
|
let value: string = toHex(EthereumjsUnits.convert(tx.amount, 'ether', 'wei'));
|
||||||
let to: string = tx.to; // eslint-disable-line prefer-destructuring
|
let to: string = tx.to; // eslint-disable-line prefer-destructuring
|
||||||
if (token) {
|
if (token) {
|
||||||
|
Loading…
Reference in New Issue
Block a user