Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed May 22, 2024
1 parent 10ecca8 commit 7bf49e5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/tx-observability/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"log"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/flashbots/suapp-examples/framework"
)

Expand All @@ -22,12 +21,8 @@ func main() {
log.Fatal("confidential request failed")
}

logEntry := types.Log{
Data: res.Logs[0].Data,
Topics: res.Logs[0].Topics,
}
var event SentTransactionsEvent
err := suappContract.Abi.UnpackIntoInterface(&event, "SentTransactions", logEntry.Data)
err := suappContract.Abi.UnpackIntoInterface(&event, "SentTransactions", res.Logs[0].Data)
if err != nil {
log.Fatalf("Failed to unpack log data: %v", err)
}
Expand Down

0 comments on commit 7bf49e5

Please sign in to comment.