1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-06-27 02:12:36 +00:00

remove console.log

This commit is contained in:
Szymon Lesisz 2018-09-18 11:12:00 +02:00
parent 4c9f5468b3
commit d4bcf160d2
4 changed files with 0 additions and 14 deletions

View File

@ -168,8 +168,6 @@ export const onNotification = (payload: any): PromiseAction<void> => async (disp
// }); // });
} }
} }
console.warn("WEB3", payload, exists, getState().pending, address)
} }

View File

@ -246,8 +246,6 @@ const discoverAccount = (device: TrezorDevice, discoveryProcess: Discovery): Asy
}; };
const finish = (device: TrezorDevice, discoveryProcess: Discovery): AsyncAction => async (dispatch: Dispatch, getState: GetState): Promise<void> => { const finish = (device: TrezorDevice, discoveryProcess: Discovery): AsyncAction => async (dispatch: Dispatch, getState: GetState): Promise<void> => {
console.warn("FINISH!");
await TrezorConnect.getFeatures({ await TrezorConnect.getFeatures({
device: { device: {
path: device.path, path: device.path,
@ -277,12 +275,9 @@ export const reconnect = (network: string): PromiseAction<void> => async (dispat
export const restore = (): ThunkAction => (dispatch: Dispatch, getState: GetState): void => { export const restore = (): ThunkAction => (dispatch: Dispatch, getState: GetState): void => {
const selected = getState().wallet.selectedDevice; const selected = getState().wallet.selectedDevice;
if (selected && selected.connected && selected.features) { if (selected && selected.connected && selected.features) {
const discoveryProcess: ?Discovery = getState().discovery.find(d => d.deviceState === selected.state && (d.interrupted || d.waitingForDevice || d.waitingForBlockchain)); const discoveryProcess: ?Discovery = getState().discovery.find(d => d.deviceState === selected.state && (d.interrupted || d.waitingForDevice || d.waitingForBlockchain));
console.warn("AAAA2")
if (discoveryProcess) { if (discoveryProcess) {
console.warn("AAAA3", discoveryProcess)
dispatch(start(selected, discoveryProcess.network)); dispatch(start(selected, discoveryProcess.network));
} }
} }

View File

@ -95,15 +95,11 @@ export const initWeb3 = (network: string, urlIndex: number = 0): PromiseAction<W
gasPrice, gasPrice,
} }
console.warn("CONNECT", web3)
dispatch({ dispatch({
type: WEB3.CREATE, type: WEB3.CREATE,
instance, instance,
}); });
// await dispatch( _onNewBlock(instance) );
resolve(instance); resolve(instance);
} }
@ -199,9 +195,7 @@ export const getPendingInfo = (network: string, txid: string): PromiseAction<voi
} }
export const getTxInput = (): PromiseAction<void> => async (dispatch: Dispatch, getState: GetState): Promise<void> => { export const getTxInput = (): PromiseAction<void> => async (dispatch: Dispatch, getState: GetState): Promise<void> => {
const instance: Web3Instance = await dispatch( initWeb3("ropsten") ); const instance: Web3Instance = await dispatch( initWeb3("ropsten") );
console.warn("GETTX", instance.erc20.options.jsonInterface)
// const inputData = instance.web3.utils.hexToAscii("0xa9059cbb00000000000000000000000073d0385f4d8e00c5e6504c6030f47bf6212736a80000000000000000000000000000000000000000000000000000000000000001"); // const inputData = instance.web3.utils.hexToAscii("0xa9059cbb00000000000000000000000073d0385f4d8e00c5e6504c6030f47bf6212736a80000000000000000000000000000000000000000000000000000000000000001");
// console.warn("input data!", inputData); // console.warn("input data!", inputData);
} }

View File

@ -103,7 +103,6 @@ export default class InstallBridge extends Component<Props, State> {
} }
onChange(value: InstallTarget) { onChange(value: InstallTarget) {
console.warn(value);
this.setState({ this.setState({
target: value, target: value,
}); });