Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

收到 Token 后自动显示在钱包 #42

Closed
jolestar opened this issue Dec 25, 2021 · 4 comments
Closed

收到 Token 后自动显示在钱包 #42

jolestar opened this issue Dec 25, 2021 · 4 comments

Comments

@jolestar
Copy link
Member

当前收到 Token 后,需要用户在钱包中手动添加一次,才能展示出来, 这样是 metamask 的做法,因为 metamask 无法查询到用户所有的 Token。

Starcoin 中用户拥有的 Token 全部在用户的 storage 下,可以通过接口全部列举出来,所以可以做到收到 Token 后自动显示在钱包。

Starcoin 中添加(接受) Token 的作用是如果用户未开启自动接收 Token 的开关,必须先接受 Token,别人才能给他转该 Token。但如果用户是在链上直接操作,接受 Token 可以在合约交互时自动完成,不需要用户在钱包中操作。

@wk3368
Copy link
Contributor

wk3368 commented Jan 10, 2022

same issue with #18

@wk3368
Copy link
Contributor

wk3368 commented Jan 12, 2022

那我们还需要保留 添加(接受) Token 和 隐藏 Token 的功能吗?

@jolestar
Copy link
Member Author

那我们还需要保留 添加(接受) Token 和 隐藏 Token 的功能吗?

接受 Token 按钮需要留着,因为如果关闭了自动接受 Token,还需要这个。不过不用放那么显眼的位置,感觉可以和自动接受的开关放一起。

@wk3368
Copy link
Contributor

wk3368 commented Jan 13, 2022

fixed in v3.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants