LedgerHQ / ledger-live-mobile

⛔️ DEPRECATED - Ledger Live (Mobile)
https://ledger.com/live
Apache License 2.0
381 stars 116 forks source link

Hotfix/3.1.1 - Prevent crash on OperationDetails #2508

Closed lambertkevin closed 2 years ago

lambertkevin commented 2 years ago

This hotfix is fixing the crash happening on OperationDetails when coming from a TokenAccount.

Error stack:

com.facebook.react.common.JavascriptException: Invariant Violation: not a derivationMode. Got: '+ethereum%2Ferc20%2Fquant'
This error is located at:
in Root
in ReactNativeProfiler
in RCTView
in Unknown
in __Sentry.TouchEventBoundary
in RootApp
in RCTView
in Unknown
in RCTView
in Unknown
in AppContainer, js engine: hermes, stack:
invariant@1:352472
asDerivationMode@1:2202244
decodeAccountId@1:1873258
Content@1:19455474
renderWithHooks@1:392481
beginWork$1@1:432482
performUnitOfWork@1:418535
workLoopSync@1:418392
renderRootSync@1:418276
performSyncWorkOnRoot@1:415616
flushSyncCallbacks@1:382653
scheduleUpdateOnFiber@1:413260
dispatchAction@1:396309
anonymous@1:12192218
anonymous@1:12232844
anonymous@1:12240789
anonymous@1:12232844
anonymous@1:12248561
anonymous@1:12248431
anonymous@1:12248431
dispatch@1:12247023
dispatch@1:12242904
anonymous@1:12243088
withStack@1:12242918
anonymous@1:12243036
anonymous@1:19464913
invokeFunc@1:8632791
trailingEdge@1:8633137
timerExpired@1:8633086
anonymous@1:453571
_callTimer@1:452808
callTimers@1:454654
__callFunction@1:359021
anonymous@1:357509
__guard@1:358467
callFunctionReturnFlushedQueue@1:357467
at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java
  at java.lang.reflect.Method.invoke (Native Method)
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:188)
  at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27)
  at android.os.Looper.loopOnce (Looper.java:201)
  at android.os.Looper.loop (Looper.java:288)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:226)
  at java.lang.Thread.run (Thread.java:920)