1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

SET_BALANCE with coin

This commit is contained in:
Szymon Lesisz 2018-03-29 11:35:45 +02:00
parent 5f47c285dc
commit df100cb060

View File

@ -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
}); });