Add upstream error fields and public error contract tests#38
Conversation
|
Claude finished @tolgahan-arikan's task —— View job Pull Request ReviewI've conducted a thorough review of this PR that adds upstream error fields and public error contract tests. Here's my comprehensive analysis: Todo List:
Review SummaryThis is an excellent PR that significantly improves error handling and testing coverage in the OMS TypeScript SDK. The implementation is well-designed, thoroughly tested, and properly documented. ✅ Strong Points1. Well-Designed Error Enhancement
2. Comprehensive Test Coverage
3. Excellent Documentation
4. Proper Implementation Patterns
5. Technical Correctness
📝 Minor Observations1. Connector Error Propagation (informational)The connector tests in expect(error.data).toMatchObject({
name: "OmsTransactionError",
upstreamError: {
service: "waas",
name: "WebrpcRequestFailed"
}
})This is exactly the right approach for maintaining error context through provider boundaries. 2. Error Contract Matrix AlignmentThe test coverage perfectly aligns with the error contract matrix in 🎯 Key Implementation HighlightsError Mapping Logic (
|
Summary
upstreamErrordetails and clearer transaction execution/status error semanticsworkspace:*and document the pnpm release flowdocs/error-contracts.mdas the audit matrix for public error contractsVerification
pnpm --filter @0xsequence/oms-wallet-wagmi-connector testpnpm --filter @0xsequence/oms-wallet-wagmi-connector buildpnpm testpnpm check:package-versionspnpm buildpnpm build:wagmi-exampleNote:
pnpm build:wagmi-examplestill emits the existing Vite large-chunk warning, but the build succeeds.