-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR: fix tx decode in query to make compatible with all tx encode (
#1424) * fix tx decode * optimize code
- Loading branch information
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bbfe781
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
更新后eth_getTransactionByHash拿不到数据是什么回事?
bbfe781
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你使用的什么版本? 主网还是测试网,你使用的什么hash? 是链上返回的,还是本地计算的,给个示例
bbfe781
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
大概14日凌晨开始,我在v1.1.4的自建fullnode和wss://exchainws.okex.org:8443上,用eth_getTransactionByHash查询pending的hash没有任何返回。
在此之前都是正常的,在其他eth兼容链上也正常,只有在新版本的oec上用不了。
大概代码:
const provider = new ethers.providers.WebSocketProvider("wss://exchainws.okex.org:8443");
provider.on("pending", (tx:string)=>{
const trans = await provider.getTransaction(tx); //trans只返回null,之前的版本能返回TransactionResponse
});
bbfe781
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我也遭遇了相同的问题 :(
bbfe781
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我也遇到了。。