SET_BALANCE with coin

pull/2/merge
Szymon Lesisz 6 years ago
parent 5f47c285dc
commit df100cb060

@ -56,13 +56,13 @@ export const init = (): any => {
try { try {
await TrezorConnect.init({ await TrezorConnect.init({
// transportReconnect: true, // transportReconnect: true,
coinsSrc: './data/coins.json', // coinsSrc: './data/coins.json',
firmwareReleasesSrc: './data/releases-1.json', // firmwareReleasesSrc: './data/releases-1.json',
transportConfigSrc: './data/config_signed.bin', // transportConfigSrc: './data/config_signed.bin',
transportReconnect: false, transportReconnect: false,
latestBridgeSrc: './data/latest.txt', // latestBridgeSrc: './data/latest.txt',
connectSrc: 'https://localhost:8088/', // connectSrc: 'https://localhost:8088/',
// connectSrc: 'https://sisyfos.trezor.io/', connectSrc: 'https://sisyfos.trezor.io/',
debug: true, debug: true,
popup: false, popup: false,
// webusb: false // webusb: false
@ -552,6 +552,7 @@ export const discoverAddress = (device: any, discoveryProcess: Discovery): any =
dispatch({ dispatch({
type: ADDRESS.SET_BALANCE, type: ADDRESS.SET_BALANCE,
address: ethAddress, address: ethAddress,
coin,
balance: web3instance.web3.fromWei(balance.toString(), 'ether') balance: web3instance.web3.fromWei(balance.toString(), 'ether')
}); });
@ -578,6 +579,7 @@ export const discoverAddress = (device: any, discoveryProcess: Discovery): any =
dispatch({ dispatch({
type: ADDRESS.SET_NONCE, type: ADDRESS.SET_NONCE,
address: ethAddress, address: ethAddress,
coin,
nonce: nonce nonce: nonce
}); });

Loading…
Cancel
Save