walletconnect-test-wallet icon indicating copy to clipboard operation
walletconnect-test-wallet copied to clipboard

eth_sendTransaction method fails on opensea

Open rajathongal opened this issue 1 year ago • 0 comments

I am trying to initiate a sell request on opensea, sendTransaction method looks like this

` const transaction = { gasLimit: request.params[0].gas, data: request.params[0].data, gasPrice: request.params[0].gasPrice, nonce: request.params[0].nonce, to: request.params[0].to, value: request.params[0].value, };

  const result = await wallet.sendTransaction(transaction);
  await connector.approveRequest
  ({
    id: request.id,
    result: result
  });

`

On opensea it throws an error like this

Error: invalid hash (argument="value", value={"type":2,"chainId":80001,"nonce":31,"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x59682f00"},"maxFeePerGas":{"type":"BigNumber","hex":"0x0fe0cd69c8"},"gasPrice":null,"gasLimit":{"type":"BigNumber","hex":"0xedce"},"to":"0x26CAa8530e8d0FA57931FEFc32165F2ffa65ab10","value":{"type":"BigNumber","hex":"0x00"},"data":"0xf242432a000000000000000000000000ca571a49f03458621dcdaa8d17030336c86f7dc80000000000000000000000001de1b2a7bf0bb71ac0457a20103b8852d8a134890000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","accessList":[],"hash":"0x91f3bfac8c3de6ee750b44932adc32ff6077f3dbfcde6f04cd86f959103cab31","v":0,"r":"0xd05f262ef378af385d084a1ff1462c973c76093d4b4de725abdaae028b4583a7","s":"0x77b4120107deaf67dd7cc9e1a31e

rajathongal avatar Oct 15 '22 04:10 rajathongal