Skip to content

Commit

Permalink
debug: gasUsed
Browse files Browse the repository at this point in the history
  • Loading branch information
blindchaser committed Nov 20, 2024
1 parent 79c51b6 commit 3ee367a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evmrpc/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"strings"
"time"

"log"

"github.com/cosmos/cosmos-sdk/client"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/accounts"
Expand Down Expand Up @@ -316,7 +318,7 @@ func encodeReceipt(receipt *types.Receipt, decoder sdk.TxDecoder, block *coretyp
}
bloom := ethtypes.Bloom{}
bloom.SetBytes(receipt.LogsBloom)

log.Printf("[DEBUG] gasUsed: %d", receipt.GasUsed)
fields := map[string]interface{}{
"blockHash": bh,
"blockNumber": hexutil.Uint64(receipt.BlockNumber),
Expand Down

0 comments on commit 3ee367a

Please sign in to comment.