Skip to content

Conversation

@ninabarbakadze
Copy link
Member

@ninabarbakadze ninabarbakadze commented Oct 16, 2025

Overview

Fixes #5945
Fixes #5992

@github-actions
Copy link

github-actions bot commented Oct 16, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://celestiaorg.github.io/celestia-app/pr-preview/pr-6036/

Built to branch gh-pages at 2025-10-30 17:43 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Contributor

@cmwaters cmwaters left a comment

Choose a reason for hiding this comment

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

If we want to do add this in a breaking way to TxClient, I would prefer to wait until v7. Conduit uses these endpoints

Comment on lines +99 to +102
ErrorLog string
Codespace string
GasWanted int64
GasUsed int64
Copy link
Member Author

Choose a reason for hiding this comment

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

do we want to add signer in the execution error as well?

@ninabarbakadze
Copy link
Member Author

Overview

Fixes #5945 Fixes #5992

Blocked on the SDK release of this work celestiaorg/cosmos-sdk#683

Created the v2 wrapper @evan-forbes feel free to take a look at my approach. Once we bump the SDK I'll take another pass thru and open the PR.

@ninabarbakadze ninabarbakadze marked this pull request as ready for review October 30, 2025 18:07
Comment on lines +28 to +29
defaultTmConfig := testnode.DefaultTendermintConfig()
defaultTmConfig.Mempool.TTLNumBlocks = ttlNumBlocks
Copy link
Collaborator

Choose a reason for hiding this comment

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

[nit] this isn't the defaultTmConfig any more if the function overrides a variable

Suggested change
defaultTmConfig := testnode.DefaultTendermintConfig()
defaultTmConfig.Mempool.TTLNumBlocks = ttlNumBlocks
tmConfig := testnode.DefaultTendermintConfig()
tmConfig.Mempool.TTLNumBlocks = ttlNumBlocks

Comment on lines +32 to +33
defaultBlobParams := blobtypes.DefaultParams()
defaultBlobParams.GovMaxSquareSize = squareSize
Copy link
Collaborator

Choose a reason for hiding this comment

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

[nit] same, no longer the default

Suggested change
defaultBlobParams := blobtypes.DefaultParams()
defaultBlobParams.GovMaxSquareSize = squareSize
blobParams := blobtypes.DefaultParams()
blobParams.GovMaxSquareSize = squareSize

WithModifiers(genesis.SetBlobParams(enc.Codec, defaultBlobParams))
// WithSuppressLogs(false)

testnodeConfig.Genesis.ConsensusParams.Block.MaxBytes = blocksize
Copy link
Collaborator

Choose a reason for hiding this comment

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

[question] is it not possible to override this via a With___ function after testnode.DefaultConfig()?

Comment on lines +18 to +23
// NewTxClient creates a new v2 TxClient wrapper around the provided TxClient
func NewTxClient(client *user.TxClient) *TxClient {
return &TxClient{
TxClient: client,
}
}
Copy link
Member

Choose a reason for hiding this comment

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

could we wrap the new function as well so the creator doesn't have to create v1 then wrap?

so
package v2
func New(args) {
v1.New(args)

etc

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.

Extend user.TxResponse with more info Refactor the TxClient to return TxResponse from the sdk

5 participants