fix(swift-sdk): wrapper for FFITxOutput that correctly handles alloc memory#3472
fix(swift-sdk): wrapper for FFITxOutput that correctly handles alloc memory#3472QuantumExplorer merged 1 commit intov3.1-devfrom
Conversation
📝 WalkthroughWalkthroughRefactors transaction output representation: removes Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
⏳ Review in progress (commit eb2825b) |
|
✅ DashSDKFFI.xcframework built for this PR.
SwiftPM (host the zip at a stable URL, then use): .binaryTarget(
name: "DashSDKFFI",
url: "https://your.cdn.example/DashSDKFFI.xcframework.zip",
checksum: "1d3a483c71bdf3c17e2d7029ce5172b8e24deec91694ffbef5e0d5a658df63ff"
)Xcode manual integration:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Core/ViewModels/SendViewModel.swift`:
- Around line 273-275: The recipient address is used untrimmed when constructing
the TxOutput in SendViewModel, which can let a trailing space slip past
detection but break signing/broadcast; before creating TxOutput(address:
recipientAddress, ...), trim the input (e.g., use
recipientAddress.trimmingCharacters(in: .whitespacesAndNewlines) or the existing
trimmed variable) and pass that trimmed string into TxOutput so the address used
for signing/broadcast matches the validated value.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: d0396a08-ab76-44b2-ae4e-553e1e54f7c4
📒 Files selected for processing (5)
packages/swift-sdk/Sources/SwiftDashSDK/Core/Wallet/CoreWalletManager.swiftpackages/swift-sdk/Sources/SwiftDashSDK/KeyWallet/Transaction.swiftpackages/swift-sdk/Sources/SwiftDashSDK/KeyWallet/TxOutput.swiftpackages/swift-sdk/Sources/SwiftDashSDK/KeyWallet/WalletManager.swiftpackages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Core/ViewModels/SendViewModel.swift
💤 Files with no reviewable changes (1)
- packages/swift-sdk/Sources/SwiftDashSDK/KeyWallet/Transaction.swift
packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Core/ViewModels/SendViewModel.swift
Show resolved
Hide resolved
2710c85 to
eb2825b
Compare
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit