[Backend] sorobanService.simulateContractCall: extract STALE_THRESHOLD_MS / fee / placeholder source magic - #740
Conversation
…D_MS / fee / placeholder source magic
|
hey, main now has stricter TypeScript (#735 just merged) which exposes a real type issue:
new Uint8Array(addr.contractId() as unknown as ArrayBufferLike)or use once that's fixed plus a rebase on main, CI should clear. |
|
two distinct build failures here:
once those build, this PR's scope (the constant extraction) is fine to land. if you want to keep contributing, join us on Telegram: https://t.me/+DOylgFv1jyJlNzM0 |
ogazboiz
left a comment
There was a problem hiding this comment.
clean readability refactor, the magic literals (fees 100/1000, the 30s timeout, the simulation placeholder account) are pulled into named, documented constants with no behavior change, and the STALE_THRESHOLD_MS doc is a nice touch. ci is green. merging.
Description
close #640
close #791
close #793
Type of Change
Related Issues
Closes #
Changes Made
Testing
Test Coverage
Test Steps
Breaking Changes
Breaking Changes:
Migration Guide:
Screenshots/Demo
Checklist
Additional Notes