Skip to content

w3.eth.contract bug #2

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

Open
1349236893 opened this issue Jul 19, 2022 · 3 comments
Open

w3.eth.contract bug #2

1349236893 opened this issue Jul 19, 2022 · 3 comments

Comments

@1349236893
Copy link

token = web3.eth.contract('', '')
TypeError: contract() takes from 1 to 2 positional arguments but 3 were given

是我的包问题吗 还是什么情况一直是这样 填写了俩个参数 提示我有三个

@gm365
Copy link
Owner

gm365 commented Jul 19, 2022

那应该就是合约参数数量问题了,有时候你还得看下参数的类型。

另外,你给出的细节太少,无法帮你定位具体问题所在。你可以再对照合约 ABI 信息尝试下,如果依旧不错,建议贴更详细的信息上来,帮你看看。

@1349236893
Copy link
Author

那应该就是契约数量问题了,你还得看下参数的类型。

另外,你提出的细节太少了,无法帮助解决具体问题。你可以再试下 ABI 的信息仍然不错,建议贴更详细的信息上来,如果你帮忙看看。

这个问题已经解决了 谢谢,还有个问题想咨询下 访问币安链 获取币安链代币余额 、获取币安链指定代币余额 怎么进行获取呢

@gm365
Copy link
Owner

gm365 commented Jun 26, 2023

BNB Chain 也是一条 EVM 兼容链,所以和其他 EVM 链的调用方式完全一样,只需要制定特定的 RPC 即可。

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