You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
I'll look into this issue. A reference for contract address/network/method/expected return value would be appreciated.
So far couldn't reproduce, returns correct value for by wallet (see Example project). BigUInt from hex string also returns correct value for your resultString.
@shamatar I find the problem. Problem is in cocoa pods. When you will set pod 'web3swift'. You will not use latest version of the lib. And in the version that is download from cocoa pods you can find this issue.
Issue was in : guard let resultString = res["result"] as? String else {return nil}
let responseData = Data(Array(hex: resultString.lowercased().stripHexPrefix()))
guard responseData != Data() else {return nil}
let biguint = BigUInt(responseData)
I've removed the code you listed for quite some time already. Version 0.2.8 should fix an issue for you. Please check your code with a new version and close if everything is resolved.
Method return wrong value.
This issue is connected with lib that is download from Cocoapods.
In my case:
resultString = "0x1c31de57e49fc00".
balance = 2031649376000000000
Expected result is one of this.
The text was updated successfully, but these errors were encountered: