title: How to get Transaction Receipt Event Logs?
body: <p>I need to get the events emitted by my smart contract and consume them in the front end via web3.</p>
  <p>I made some event on my contract that returns event winner and ticket number:</p>
  <pre><code>event Winner(uint256 ticketNumber, address winner);
  </code></pre>
  <p>So I emit this event, and I see it on transaction logs.</p>
  <p>From Etherscan:</p>
  <p><a href="https://i.stack.imgur.com/F9Wpn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F9Wpn.png" alt="enter image description here" /></a></p>
  <p>OK! What I need is the data: ticketNumber: 1, winner: 0x........
  How did I get this from web3?</p>
  <p>Im trying to use:</p>
  <pre><code> await web3.eth.getTransactionReceipt(txnHash, function (error, result) {
            console.log(result);
          });
  </code></pre>
  <p>But when I check console log, I cannot see this information, I suspect that result.logs.data is the right info, but I don't know for sure, and I don't know how to translate:</p>
  <p>&quot;0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000005964b608ea267bfe9ef77707fce8105a2d145e7a&quot;</p>
  <p>Anybody have an idea?</p>