trufflesuite / drizzle

Reactive Ethereum dapp UI suite
905 stars 235 forks source link

Access txHash through react hooks in pending status. #50

Open IlgizZ opened 4 years ago

IlgizZ commented 4 years ago

Hi! I am using drizzle useCacheSend hook to call smart contract.

  const { send, TXObjects } = useCacheSend(
    "Contract",
    "method"
  );

When transaction is signed I got the follow in TXObjects:

{
   confirmations: [],
   status: "pending"
}

Is there any way to fetch txHash through hook I see you use it in redux on pending status?