mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-27 16:31:06 +00:00
remove console.log
This commit is contained in:
parent
4c9f5468b3
commit
d4bcf160d2
@ -168,8 +168,6 @@ export const onNotification = (payload: any): PromiseAction<void> => async (disp
|
||||
// });
|
||||
}
|
||||
}
|
||||
|
||||
console.warn("WEB3", payload, exists, getState().pending, address)
|
||||
}
|
||||
|
||||
|
||||
|
@ -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> => {
|
||||
|
||||
console.warn("FINISH!");
|
||||
await TrezorConnect.getFeatures({
|
||||
device: {
|
||||
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 => {
|
||||
const selected = getState().wallet.selectedDevice;
|
||||
|
||||
if (selected && selected.connected && selected.features) {
|
||||
const discoveryProcess: ?Discovery = getState().discovery.find(d => d.deviceState === selected.state && (d.interrupted || d.waitingForDevice || d.waitingForBlockchain));
|
||||
console.warn("AAAA2")
|
||||
if (discoveryProcess) {
|
||||
console.warn("AAAA3", discoveryProcess)
|
||||
dispatch(start(selected, discoveryProcess.network));
|
||||
}
|
||||
}
|
||||
|
@ -95,15 +95,11 @@ export const initWeb3 = (network: string, urlIndex: number = 0): PromiseAction<W
|
||||
gasPrice,
|
||||
}
|
||||
|
||||
console.warn("CONNECT", web3)
|
||||
|
||||
dispatch({
|
||||
type: WEB3.CREATE,
|
||||
instance,
|
||||
});
|
||||
|
||||
// await dispatch( _onNewBlock(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> => {
|
||||
|
||||
const instance: Web3Instance = await dispatch( initWeb3("ropsten") );
|
||||
console.warn("GETTX", instance.erc20.options.jsonInterface)
|
||||
// const inputData = instance.web3.utils.hexToAscii("0xa9059cbb00000000000000000000000073d0385f4d8e00c5e6504c6030f47bf6212736a80000000000000000000000000000000000000000000000000000000000000001");
|
||||
// console.warn("input data!", inputData);
|
||||
}
|
||||
|
@ -103,7 +103,6 @@ export default class InstallBridge extends Component<Props, State> {
|
||||
}
|
||||
|
||||
onChange(value: InstallTarget) {
|
||||
console.warn(value);
|
||||
this.setState({
|
||||
target: value,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user