From 31e2cc9c6ddaad556ac415f545071ec7b1410fde Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 4 Jan 2024 13:11:24 +0330 Subject: [PATCH] legacy tx if gasPrice provided --- internal/ethapi/multicall.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/ethapi/multicall.go b/internal/ethapi/multicall.go index aaae2f1b70..60e5fb05b5 100644 --- a/internal/ethapi/multicall.go +++ b/internal/ethapi/multicall.go @@ -187,7 +187,12 @@ func (mc *multicall) execute(ctx context.Context, opts mcOpts) ([]mcBlockResult, if err := call.validateAll(); err != nil { return nil, err } - tx := call.ToTransaction(true) + // Default to dynamic-fee transaction type. + type2 := true + if call.GasPrice != nil { + type2 = false + } + tx := call.ToTransaction(type2) txes[i] = tx // TODO: repair log block hashes post execution. vmConfig := &vm.Config{