From 65d7dd13bebd2d0efff98503f4443e697624a3fa Mon Sep 17 00:00:00 2001 From: Cal Bera Date: Wed, 14 Feb 2024 13:49:35 -0500 Subject: [PATCH] quick (#66) --- core/transactor/tracker/tracker.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/transactor/tracker/tracker.go b/core/transactor/tracker/tracker.go index 4a74cff..423c2c2 100644 --- a/core/transactor/tracker/tracker.go +++ b/core/transactor/tracker/tracker.go @@ -142,6 +142,11 @@ func (t *Tracker) markIncluded( ) { t.noncer.RemoveInFlight(tx) tx.Receipt = receipt + + // Set the contract address field on the receipt since geth doesn't do this. + if contractAddr := tx.To(); contractAddr != nil && tx.Receipt != nil { + tx.Receipt.ContractAddress = *contractAddr + } } // markStale marks a transaction as stale if it's in the in-flight list