AlphaWallet / alpha-wallet-ios

An advanced Ethereum/EVM mobile wallet
https://www.alphawallet.com
MIT License
601 stars 372 forks source link

binance signtransaction error ios 17 #7008

Closed akhilccrb closed 1 year ago

akhilccrb commented 1 year ago

In browser section while interacts to smart contract signing transaction fail. But it works in ios 17 lower versions, in BNB Chain.

akhilccrb commented 1 year ago

https://bsc-dataseed.binance.org - Request timeout error only in ios 17 devices.

convertToUserFriendlyError URL: https://bsc-dataseed.binance.org error: connectionError(Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x10951cad0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <9A26F30F-242E-4051-BB66-A63EA51E6236>.<565>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <9A26F30F-242E-4051-BB66-A63EA51E6236>.<565>" ), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://bsc-dataseed.binance.org/, NSErrorFailingURLKey=https://bsc-dataseed.binance.org/, _kCFStreamErrorDomainKey=4})

akhilccrb commented 1 year ago

This is due to different address is for unsigned transaction. Each time its changes. @hboon

akhilccrb commented 1 year ago

signedTransaction: "0xf8cb30850218711a00830134ce946a6118ea4ff6792c6e6ecc50dfb6282801845ae880b864969e3756000000000000000000000000b59f91ee125d1ab802444e57fb50131ffe9cc6dd00000000000000000000000055d398326f99059ff775485246999027b31979550000000000000000000000000000000000000000000000008ac7230489e800008194a06932f8c2857fc6ec29e4defc1c88a28e62bc8b8d7d5054d6704d9e7934ef16b6a06932f8c2857fc6ec29e4defc1c88a28e62bc8b8d7d5054d6704d9e7934ef16b6"

After creating signedTransaction from address is different. This is the reason for the issue. I think its signing error. but it is happening only device above ios 17. @hboon

hboon commented 1 year ago

Duplicate of #7020