diff --git a/packages/mobile/src/app/__snapshots__/Debug.test.tsx.snap b/packages/mobile/src/app/__snapshots__/Debug.test.tsx.snap index ea5bfbfaef2..9192020d510 100644 --- a/packages/mobile/src/app/__snapshots__/Debug.test.tsx.snap +++ b/packages/mobile/src/app/__snapshots__/Debug.test.tsx.snap @@ -53,7 +53,7 @@ exports[`Debug renders correctly 1`] = ` } } > - Address: 0x0000000000000000000000000000000000007E57 + Address: 0x0000000000000000000000000000000000007e57 + firebase + .database() + .ref(`${REQUEST_DB}/${id}`) + .update({ status }) + ) Logger.debug(TAG, 'Payment request status updated', id) } catch (error) { Logger.error(TAG, `Error while updating payment request ${id} status`, error) diff --git a/packages/mobile/src/qrcode/__snapshots__/QRCode.test.tsx.snap b/packages/mobile/src/qrcode/__snapshots__/QRCode.test.tsx.snap index c0bedbb255b..d805c7c0965 100644 --- a/packages/mobile/src/qrcode/__snapshots__/QRCode.test.tsx.snap +++ b/packages/mobile/src/qrcode/__snapshots__/QRCode.test.tsx.snap @@ -113,7 +113,7 @@ exports[`QRCode renders correctly 1`] = ` width={375} /> diff --git a/packages/mobile/src/web3/reducer.ts b/packages/mobile/src/web3/reducer.ts index 1ec445cfbfe..a8339d651be 100644 --- a/packages/mobile/src/web3/reducer.ts +++ b/packages/mobile/src/web3/reducer.ts @@ -49,7 +49,7 @@ export const reducer = ( case Actions.SET_ACCOUNT: return { ...state, - account: action.address, + account: action.address.toLowerCase(), } case Actions.SET_ACCOUNT_IN_WEB3_KEYSTORE: return { diff --git a/packages/mobile/src/web3/saga.test.ts b/packages/mobile/src/web3/saga.test.ts index 0d1e240e959..bee6ac8009f 100644 --- a/packages/mobile/src/web3/saga.test.ts +++ b/packages/mobile/src/web3/saga.test.ts @@ -59,7 +59,7 @@ describe(getOrCreateAccount, () => { .withState(state) .provide([[select(currentAccountSelector), null]]) .provide([[select(pincodeTypeSelector), '123']]) - .returns('0x0000000000000000000000000000000000007E57') + .returns('0x0000000000000000000000000000000000007e57') .run() }) }) diff --git a/packages/mobile/src/web3/selectors.ts b/packages/mobile/src/web3/selectors.ts index 4e2b7b4524d..9312f303862 100644 --- a/packages/mobile/src/web3/selectors.ts +++ b/packages/mobile/src/web3/selectors.ts @@ -1,6 +1,7 @@ import { RootState } from 'src/redux/reducers' -export const currentAccountSelector = (state: RootState) => state.web3.account +export const currentAccountSelector = (state: RootState) => + (state.web3.account && state.web3.account.toLowerCase()) || null export const currentAccountInWeb3KeystoreSelector = (state: RootState) => state.web3.accountInWeb3Keystore export const zeroSyncSelector = (state: RootState) => state.web3.zeroSyncMode