The issue was reported by E11, according to Allejo
Bug
The bug happens when a Contract with an Event is called twice inside a function body, the Event is only emitted one time, let's say we have a Contract like the following:
contract SimpleStore {
uint256 public value;
event NewValueSet(uint256 indexed _value);
function set(uint256 _value) public {
value = _value;
emit NewValueSet(value);
emit NewValueSet(value + 1);
}
}
If a transaction was sent to the SimpleStore contract on function set with value equals 1, only one event will be emitted with the value equals 1, and the second event with value equals 2 isn't emitted
Expected
If a transaction was sent to the SimpleStore contract on function set with a value equals 1, two events should be emitted a first one with the value of 1 and a second with the value of 2
A proof of concept can be found at: loomnetwork/loom-js#194
The issue was reported by
E11, according to AllejoBug
The bug happens when a
Contractwith anEventis called twice inside a function body, theEventis only emitted one time, let's say we have aContractlike the following:If a transaction was sent to the
SimpleStorecontract on functionsetwith value equals1, only one event will be emitted with the value equals1, and the second event with value equals2isn't emittedExpected
If a transaction was sent to the
SimpleStorecontract on functionsetwith a value equals1, two events should be emitted a first one with the value of1and a second with the value of2A proof of concept can be found at: loomnetwork/loom-js#194