From 848a09762cf2ad1e22ed37cf7b8b4ab77b2eece0 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Tue, 18 Feb 2025 04:46:03 +0100 Subject: [PATCH] fix(taiko-client): use bytes type that supports hex string unmarshalling on `ExecutableData` (#18946) --- packages/taiko-client/driver/preconf_blocks/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/taiko-client/driver/preconf_blocks/api.go b/packages/taiko-client/driver/preconf_blocks/api.go index 3351170057e..0b9601b146d 100644 --- a/packages/taiko-client/driver/preconf_blocks/api.go +++ b/packages/taiko-client/driver/preconf_blocks/api.go @@ -6,6 +6,7 @@ import ( "github.com/ethereum-optimism/optimism/op-service/eth" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" @@ -37,7 +38,7 @@ type ExecutableData struct { Number uint64 `json:"blockNumber"` GasLimit uint64 `json:"gasLimit"` Timestamp uint64 `json:"timestamp"` - Transactions []byte `json:"transactions"` + Transactions hexutil.Bytes `json:"transactions"` } // BuildPreconfBlockRequestBody represents a request body when handling