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

在GetERC20Balances函数中,arg.Data = methodId+"000000000000000000000000"+userAddress[2:]一直报错 #4

Open
Wishui opened this issue Oct 20, 2021 · 1 comment
Labels

Comments

@Wishui
Copy link

Wishui commented Oct 20, 2021

在GetERC20Balances函数中,arg.Data = methodId+"000000000000000000000000"+userAddress[2:]一直报错,
错误信息是Cannot use 'methodId+"000000000000000000000000"+userAddress[2:]' (type string) as the type common.Address
7{7(Q)(Y`NF{U3RUS%ID26D

R$WWA%B5{)FO${@%(U5 1}A
@af913337456

@Wishui Wishui changed the title 1 在GetERC20Balances函数中,arg.Data = methodId+"000000000000000000000000"+userAddress[2:]一直报错 Oct 20, 2021
@af913337456
Copy link
Owner

@Wishui 你需要熟悉下 Go 的基础语法,arg.Data 的参数类型是 address,不是 string,可以使用 address 的方法转一下。

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

No branches or pull requests

2 participants