Skip to content

fix(contract): validate token addresses using contract-safe checks#570

Merged
orunganiekan merged 2 commits into
SiLioLabs:masterfrom
originaldefiboy:issue-468-validate-token-is-contract
Jun 30, 2026
Merged

fix(contract): validate token addresses using contract-safe checks#570
orunganiekan merged 2 commits into
SiLioLabs:masterfrom
originaldefiboy:issue-468-validate-token-is-contract

Conversation

@originaldefiboy

@originaldefiboy originaldefiboy commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Closes #468


Summary

  • move token validation into a shared helper in the contract validation module
  • replace the brittle XDR byte inspection with a safer contract-call-based validation path
  • add regression coverage for both invalid and valid token-address flows

Related issue

@orunganiekan
orunganiekan merged commit 41dd05f into SiLioLabs:master Jun 30, 2026
0 of 2 checks passed
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.

## [CONTRACT-12] Implement validate_token_is_contract Using WASM-Safe XDR Inspection

2 participants