AlphaWallet / AlphaWallet/alpha-wallet-ios

cast data issue

未關閉
#6,452 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Swift
星號
631
分支
384
PR 合併指標
30 天內沒有已合併 PR

描述

crash appears in function `AssetAttributeMethodCall`, was several times on simulator only
```
func response(from resultObject: Any) throws -> AssetInternalValue {
guard let dictionary = resultObject as? [String: AnyObject] else { <--- crashes here `swift_dynamicCast`
throw CastError(actualValue: resultObject, expectedType: [String: AnyObject].self)
}

if let value = dictionary["0"] {
return CallForAssetAttributeProvider.functional.mapValue(of: functionCall.output, for: value)
} else {
if case SolidityType.void = functionCall.output.type {
return .bool(false)
} else {
throw Web3Error(description: "nil result from calling: \(function.name)() on contract: \(functionCall.contract.eip55String)")
}
}
}
```

https://console.firebase.google.com/u/0/project/alphawallet-ios-prod/crashlytics/app/ios:com.stormbird.alphawallet/issues/2667f4bf9b6d3a0f2892c21ebf84ee4c?time=last-seven-days&versions=3.62%20(475)&sessionEventKey=b42e2e5aaea14f1183ff10417e5af771_1784330522929874011

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。