2

web3js里,关于事件监听的文档更新了么?为何旧方法监听不到事件了。 | 登链社区 | 技...

 2 years ago
source link: https://learnblockchain.cn/question/2866
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

web3js里,关于事件监听的文档更新了么?为何旧方法监听不到事件了。 | 登链社区 | 技术问答

5 web3js里,关于事件监听的文档更新了么?为何旧方法监听不到事件了。

回答问题即可获得 5 贡献值,回答被采纳后即可获得 10 学分。

如题,我用此前曾经测试成功的方法试图监听合约事件:`

myInstance.events.Achanged(function(err,eve){
              if(!err){
                 console.log(eve);
              }
            });

我的事件名就叫Achanged,但现在触发事件的方法可以执行成功,事件本身却无论如何也监听不到了,是web3js本身更新了吗?

我用的是http的provider


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK