← Code LabReact Native0/50 solved · 0%
Performance · hard

39. BigInt precision for wei math

Avoid floating-point error in on-chain amounts.

Write `addWei(a, b)` accepting two wei amounts as strings, returning their sum as a string, using `BigInt` for exact precision.
Required in your answer: BigInt(