Skip to content

Add unit test for simulate_transaction with failed simulation response #167

@Emrys02

Description

@Emrys02

Contribution Guide

  • PRs go to the dev branch, not main
  • Application must explain your specific approach to this task; generic applications will not be assigned
  • PR description must clearly describe what you built and changed
  • Link your PR to the correct issue number

Simulation failures (e.g., contract traps, budget exceeded) return a specific JSON structure. We need a test to ensure simulate_transaction correctly parses these errors and returns the appropriate PrismError::RpcError.

Implementation Guidelines Key Files: crates/core/src/rpc/client.rs.
Expectations What done looks like: A unit test verifies that simulate_transaction returns an error when the RPC response contains a simulation failure, with the error message correctly extracted.

For any question, reach me on Discord: emry_ss

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions