trezor / trezor-suite

Trezor Suite Monorepo
https://trezor.io/trezor-suite
Other
721 stars 251 forks source link

TypeError: Cannot read properties of undefined (reading 'type') #6126

Open sentry-io[bot] opened 2 years ago

sentry-io[bot] commented 2 years ago

suite/blob/develop/packages/suite/src/hooks/wallet/useRbfForm.ts/#L203

Sentry Issue: TREZOR-SUITE-NEC

TypeError: Cannot read properties of undefined (reading 'type')
  at None (/web/js/32143.fd463f0c.js:1:551122)
  at js (/web/js/3304.583239ff.js:2:1694490)
  at t.unstable_runWithPriority (/web/js/3304.583239ff.js:2:2352271)
  at Wa (/web/js/3304.583239ff.js:2:1635140)
  at Ls (/web/js/3304.583239ff.js:2:1693953)
...
(9 additional frame(s) were not displayed)
sentry-io[bot] commented 2 years ago

Sentry issue: TREZOR-SUITE-2MQ

marekrjpolak commented 2 years ago

Unfortunately it's not related to the sparse tx array as I've thought but rather to some race condition in RBF fee calculation (there is probably no transaction composed for specific fee level). I think whole fee selection/calculation should be refactored, but it requires a lot of time.