You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
It should return the values emitted through the smart contract's event.
Current Behavior
Attempts to retrieve the values emitted but get's stuck in an infinite getFilterChanges loop.
Like so eth_call eth_getFilterLogs eth_getFilterChanges eth_getFilterChanges eth_getFilterChanges eth_getFilterChanges eth_getFilterChanges
Possible Solution
I don't know but the issue has been previously fixed as you will see further down.
Steps to Reproduce (for bugs)
It happens whenever I call an event, the event happens at the end of a contract function and the event is certainly not looped.
`Contract.deployed().then((instance) => {
var event = instance.sponsorEvent();
var _this = this;
let wachtEvent = event.watch(function(error, result){
if(!error){
console.log(result);
}
});
Since using events is best practice in getting values it would be hard to create any other way around using this method. This issue had been found and fixed before (#56) but I'm afraid that it might have returned.
Another old reference to the same issue: #156.
Your Environment
Version used: Ganache CLI v6.1.0 (ganache-core: 2.1.0)
Version of Truffle/Remix/Other tools used: Truffle v4.1.5 (core: 4.1.5) Solidity v0.4.21 (solc-js)
Hi @GabrielKidane apologies for not getting to this sooner. I hope it has been resolved! We are closing for issue maintenance but if this is still a problem please feel free to open a new issue. Thanks!
Expected Behavior
It should return the values emitted through the smart contract's event.
Current Behavior
Attempts to retrieve the values emitted but get's stuck in an infinite getFilterChanges loop.
Like so
eth_call eth_getFilterLogs eth_getFilterChanges eth_getFilterChanges eth_getFilterChanges eth_getFilterChanges eth_getFilterChanges
Possible Solution
I don't know but the issue has been previously fixed as you will see further down.
Steps to Reproduce (for bugs)
It happens whenever I call an event, the event happens at the end of a contract function and the event is certainly not looped.
`Contract.deployed().then((instance) => {
var event = instance.sponsorEvent();
var _this = this;
});`
`function support(string name) external payable
huntOn
minimumValue
{
Sponsor storage sponsor = sponsors[msg.sender];
sponsor.name = name;
sponsor.amount = sponsor.amount.add(msg.value);
sponsorPool = sponsorPool.add(msg.value)
-->
Context
Since using events is best practice in getting values it would be hard to create any other way around using this method. This issue had been found and fixed before (#56) but I'm afraid that it might have returned.
Another old reference to the same issue: #156.
Your Environment
The text was updated successfully, but these errors were encountered: