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

合约事件推送的SampleCode中BlockNumber是BigInteger所以直接复制过来用会编译错误 #1795

Open
limingxie opened this issue May 11, 2024 · 1 comment

Comments

@limingxie
Copy link

limingxie commented May 11, 2024

https://fisco-bcos-doc.readthedocs.io/zh-cn/latest/docs/sdk/java_sdk/event_sub.html#id7

几个示例中的Block参数是BigInteger,所以编译的时候报错。

    // 全部Event fromBlock设置为 -1 
    params.setFromBlock(-1);  //应该是==> params.setFromBlock(new BigInteger("-1"));

    // toBlock设置为-1,处理至最新区块继续等待新的区块
    params.setToBlock(-1);  //应该是==> params.setToBlock(new BigInteger("-1"));
@JimmyShi22
Copy link
Member

👍 欢迎提PR

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