From 65309c6fb297a74f0d947dfac1dadf1901fdde40 Mon Sep 17 00:00:00 2001 From: Maximilian Langenfeld <15726643+ezdac@users.noreply.github.com> Date: Tue, 14 May 2024 11:50:44 +0200 Subject: [PATCH] Fix "feeCurrency" included in non-Celo marshalled tx JSON (#121) Fixes #117 --- core/types/transaction_marshalling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go index c0e70de741..b800f524e9 100644 --- a/core/types/transaction_marshalling.go +++ b/core/types/transaction_marshalling.go @@ -65,7 +65,7 @@ type txJSON struct { Hash common.Hash `json:"hash"` // Celo specific fields - FeeCurrency *common.Address `json:"feeCurrency"` // nil means native currency + FeeCurrency *common.Address `json:"feeCurrency,omitempty"` // nil means native currency } // yParityValue returns the YParity value from JSON. For backwards-compatibility reasons,