AlphaWallet / AlphaWallet/alpha-wallet-ios

cast data issue

Aperta
#6,452 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Swift
Stelle
631
Fork
384
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.