Skip to content

fix: replace unsafe type assertions with proper types#31

Merged
AquiGorka merged 2 commits into
mainfrom
fix/type-safety-improvements
Mar 31, 2026
Merged

fix: replace unsafe type assertions with proper types#31
AquiGorka merged 2 commits into
mainfrom
fix/type-safety-improvements

Conversation

@AquiGorka
Copy link
Copy Markdown
Contributor

Summary

  • Replace unknown type for TransactInput.op with xdr.ScVal based on contract spec and buildXDR() return type
  • Remove @ts-ignore in Proxy set handler by using correct trap signature and Record cast
  • Remove as any in provider signing by converting Buffer to Uint8Array explicitly

Test plan

  • deno check passes with no type errors
  • deno task test:unit — no regressions

- Type TransactInput.op as xdr.ScVal instead of unknown
- Fix Proxy set handler: correct trap signature (string | symbol),
  use direct property access for status, safe Record cast
- Clarify Buffer type mismatch comment in provider signing
@AquiGorka AquiGorka force-pushed the fix/type-safety-improvements branch from 99f3721 to d238d11 Compare March 31, 2026 12:34
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AquiGorka AquiGorka merged commit 2501032 into main Mar 31, 2026
2 checks passed
@AquiGorka AquiGorka deleted the fix/type-safety-improvements branch March 31, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant