From a89ab83089702816d4834d95cde1f2aacfa41b98 Mon Sep 17 00:00:00 2001 From: maskpp Date: Mon, 22 May 2023 16:52:13 +0800 Subject: [PATCH] fix(API): use `hexutil.Big` for `l1Fee` in `GetTransactionReceipt` (#336) * It's not a bug, but if just translate to hexutil.Big can be better. * Revert editor's auto change. * Update version. * Update version. --- internal/ethapi/api.go | 2 +- params/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index d6e2591a14..0f9fe50491 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1669,7 +1669,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(ctx context.Context, ha "logs": receipt.Logs, "logsBloom": receipt.Bloom, "type": hexutil.Uint(tx.Type()), - "l1Fee": hexutil.Uint64(receipt.L1Fee.Uint64()), + "l1Fee": (*hexutil.Big)(receipt.L1Fee), } // Assign the effective gas price paid if !s.b.ChainConfig().IsLondon(bigblock) { diff --git a/params/version.go b/params/version.go index ce0873da84..1e971462f9 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 3 // Major version component of the current release VersionMinor = 2 // Minor version component of the current release - VersionPatch = 3 // Patch version component of the current release + VersionPatch = 4 // Patch version component of the current release VersionMeta = "alpha" // Version metadata to append to the version string )