Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ethclient: fix BlobSidecars api #2656

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

jhgdike
Copy link
Contributor

@jhgdike jhgdike commented Aug 20, 2024

Description

Fix the APIs response of BlobSidecars and BlobSidecarByTxHash

Rationale

Recently, I used the APIs above but they didn't work, and I found the response has the wrong structure. So I fixed it.

core/types/tx_blob.go Outdated Show resolved Hide resolved
core/types/blob_sidecar.go Outdated Show resolved Hide resolved
core/types/blob_sidecar.go Outdated Show resolved Hide resolved
@jhgdike jhgdike force-pushed the dike-fix branch 2 times, most recently from 79332cb to c5f4362 Compare August 20, 2024 06:20
Copy link
Contributor

@galaio galaio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zzzckck zzzckck merged commit c46d7e8 into bnb-chain:develop Aug 22, 2024
7 checks passed
@jhgdike jhgdike deleted the dike-fix branch August 22, 2024 09:57
@@ -141,8 +141,8 @@ func (ec *Client) BlobSidecars(ctx context.Context, blockNrOrHash rpc.BlockNumbe
}

// BlobSidecarByTxHash return a sidecar of a given blob transaction
func (ec *Client) BlobSidecarByTxHash(ctx context.Context, hash common.Hash) (*types.BlobTxSidecar, error) {
var r *types.BlobTxSidecar
func (ec *Client) BlobSidecarByTxHash(ctx context.Context, hash common.Hash) (*types.BlobSidecar, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants