You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(sdk-coin-eos): add coverage for memoId=0 address handling
Add test cases for EOS address handling when memoId equals '0' (the
first receive address index). The string '0' is truthy in JavaScript
but differs from other memo IDs in being numerically zero, which can
trigger subtle falsy-check bugs.
Added tests for:
- getAddressDetails with ?memoId=0
- isValidAddress with ?memoId=0
- isValidMemoId with value '0'
- verifyAddress with ?memoId=0
- verifyTransaction with a tx containing memo='0' and recipient
address ?memoId=0
All tests confirm the SDK handles memoId=0 correctly. These tests
provide regression coverage against future changes that might
inadvertently break the falsy-safe '0' handling.
Ticket: COINS-1232
Co-Authored-By: Claude <noreply@anthropic.com>
Session-Id: b9aaf785-eb22-46b4-853a-ee44f3d06a1a
Task-Id: 0bb9551a-800d-4e1e-b09f-fe82f03b7754
0 commit comments