Skip to content

Commit

Permalink
Merge pull request #155 from lukso-network/chore/log-tx-hash
Browse files Browse the repository at this point in the history
chore: logging transaction hash
  • Loading branch information
JeneaVranceanu authored May 16, 2024
2 parents c0a9d21 + 2405ddd commit b90748d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/compositions/useWeb3Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ const sendTransaction = (
): Promise<TransactionReceipt> => {
return web3.eth
.sendTransaction(transaction)
.on('transactionHash', hash => {
console.log('Transaction hash:', hash)
})
.on('receipt', (receipt: any) => {
console.log(receipt)
console.log('Transaction receipt:', receipt)
})
.once('sending', payload => {
console.log(JSON.stringify(payload, null, 2))
Expand Down

0 comments on commit b90748d

Please sign in to comment.