title: Uncaught (in promise) Error: sending a transaction requires a signer
body: <p>Hey I am getting this error</p>
  <pre><code>                                      `Uncaught (in promise) Error: sending a transaction requires a signer (operation=&quot;sendTransaction&quot;, code=UNSUPPORTED_OPERATION, version=contracts/5.2.0)
  at Logger.makeError (ethers-5.2.umd.min.js:1:59669)
  at Logger.throwError (ethers-5.2.umd.min.js:1:59874)
  at Contract.&lt;anonymous&gt; (ethers-5.2.umd.min.js:1:312289)
  at step (ethers-5.2.umd.min.js:1:305047)
  at Object.next (ethers-5.2.umd.min.js:1:304307)
  at ethers-5.2.umd.min.js:1:303953
  at new Promise (&lt;anonymous&gt;)
  at __awaiter (ethers-5.2.umd.min.js:1:303591)
  at Contract.&lt;anonymous&gt; (ethers-5.2.umd.min.js:1:312138)
  at vote (index.html:338:34)`
  </code></pre>
  <p>On this code</p>
  <p><code>function vote(){ provider = new ethers.providers.Web3Provider(window.ethereum); signer = provider.getSigner(0); const contract = new ethers.Contract(&quot;0xF1bFB2277C269DC90D8726DDf60A680aeffA2AbF&quot;, abi, provider); console.log(&quot;workin&quot;); var propval = document.getElementById(&quot;select&quot;).value; var castvote = contract.vote(propval); castvote.then(function(){ document.getElementById(&quot;mp&quot;).innerHTML = transaction; }) }</code></p>
  <p>Anyone pls help me in fixing this</p>