Giter VIP home page Giter VIP logo

Comments (6)

Li-Qun avatar Li-Qun commented on May 28, 2024

And use the clone TokenCore can use the func WalletManager.importFromKeystore, but when I pod the sdk into my project , the func WalletManager.importFromKeystore doesn't work !
Then debug and find the difference:

public static var currentIdentity: Identity? {
set(newIdentity) {
_currentIdentity = newIdentity //the clone one can execute this code
}
get {
if _currentIdentity == nil {
_currentIdentity = storage.tryLoadIdentity() //but the sdk pod into my project execute this code
}
return _currentIdentity
}
}

Printing description of newIdentity:
▿ Optional
▿ some : <Identity: 0x7f9acab0cc20>

(lldb) po newIdentity
error: :3:1: error: use of unresolved identifier 'newIdentity'
newIdentity

pleae tell me what should I do to solve that problem ??

from token-core-ios.

Li-Qun avatar Li-Qun commented on May 28, 2024

And use the clone TokenCore can use the func WalletManager.importFromKeystore, but when I pod the sdk into my project , the func WalletManager.importFromKeystore doesn't work !
Then debug and find the difference:

public static var currentIdentity: Identity? {
set(newIdentity) {
_currentIdentity = newIdentity //the clone one can execute this code
}
get {
if _currentIdentity == nil {
_currentIdentity = storage.tryLoadIdentity() //but the sdk pod into my project execute this code
}
return _currentIdentity
}
}

please tell me what should I do to solve that problem ??

from token-core-ios.

XuNeal avatar XuNeal commented on May 28, 2024

Hey @Li-Qun

  1. TokenCore is follow the V3 Keystore format, the keystore standard of Ethereum, which the address is not start with '0x'.
  2. We have do the full test on ETC.
  3. We are working on you third question

from token-core-ios.

Li-Qun avatar Li-Qun commented on May 28, 2024

@ XuNeal 小哥哥 我知道我们都会说汉语了,“ETH 不是ETC。。。。。”
1.针对你回答的第一个问题,没有解决我的问题,在clone 的sdk 项目里, 如果keystore 中带了 0x开头的地址,sdk 是不识别的,我该怎么处理这个问题呢???
重点是imtoken app 中经过测试,imtoken 自己生成的keystore 是不带0x的,但是导入是带0x开头也可以正常交易,并且再查看keystore时候也是带0x开头的,为啥这个TokenCore 当且仅当不带0x开头才行 是吗?否者 导入的wallt 就是nil(难道要我识别一下用户导入的keystore...转换一下。。。这是我当前能想到的方法并且十分土。。。)
2.做了全面测测试? ETC ???===》ETH
3.Pod 下来的sdk方法不能像clone 项目中那样正常使用,期待你们的解决谢谢。waiting 至此,使用你们的SDK进度完全停滞,期待你们能解决这个问题。

from token-core-ios.

XuNeal avatar XuNeal commented on May 28, 2024
  1. 你可以判断一下如果地址是0x开头的去掉0x就可以了。不会有任何影响。其他所有人也是这么实现的。
  2. 实在不好意思第二条是typo。我们没在ETC上做过测试,只在ETH上做过测试。
  3. 呃呃,你能不能先直接使用源码导入的项目。最近公司比较忙

from token-core-ios.

XuNeal avatar XuNeal commented on May 28, 2024

该问题已经长时间没有回复,我先关掉了

from token-core-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.