polkawallet-io / polkawallet-flutter

Replace to: https://github.com/polkawallet-io/app
Apache License 2.0
110 stars 51 forks source link

返回的hash 和浏览器查到的不一样 #152

Closed mghnmtt closed 4 years ago

mghnmtt commented 4 years ago

{"path":"uid=3;account.sendTx","data":{"hash":"0x946e012067810f6419bdf7f22dc250b1071dc298d9070a3c44b7de7f2efffd88"}}

请问是返回错误么

mghnmtt commented 4 years ago

执行sendTx 返回的hash 和实际浏览器查到的不一样

RomeroYang commented 4 years ago

执行sendTx 返回的hash 和实际浏览器查到的不一样

什么场景,浏览器链接

mghnmtt commented 4 years ago

转账 调用send.tx 会返回 {"path":"uid=3;account.sendTx","data":{"hash":"0x946e012067810f6419bdf7f22dc250b1071dc298d9070a3c44b7de7f2efffd88"}} 这里的hash 使用 https://polkadot.subscan.io 是查不到的 通过address 去看这笔交易的实际hash 和这里返回的不一样

还有个问题是 如果转账完成后 余额小于1 会remove account 请问这个也是特意这么做的么 https://polkadot.subscan.io/extrinsic/0x714888062abcbbd31a4ba1fe6e6aa7bdacf36a8c4976dc0b3d4bc8959033f540

截屏2020-08-25 下午2 00 51
RomeroYang commented 4 years ago

tx hash是有问题,#152 修复了。

账户存活余额是波卡的机制设计,用来节省链上存储。

顺便问一下你是基于polkawallet做什么项目? 我们正在做 https://github.com/polkawallet-io/sdk, 希望能够更加方便的支持各种substrate项目接入,如果有什么需求都可以提,我们尽量把做得功能通用一些。

mghnmtt commented 4 years ago

感谢大佬指导和提供的帮助 目前是在钱包中支持DOT转账功能 后面会接入一些Dapp