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

Incorrect Type for gasBudget in BatchTransaction Function #40

Open
insistedMarin opened this issue Nov 13, 2024 · 0 comments
Open

Incorrect Type for gasBudget in BatchTransaction Function #40

insistedMarin opened this issue Nov 13, 2024 · 0 comments

Comments

@insistedMarin
Copy link

Problem

In the BatchTransaction function located in client_call.go line 369, the type of gasBudget is incorrect. Currently, it is defined as an uint64, but it should be types.SafeSuiBigInt[uint64] to align with the expected type and prevent errors during transaction execution.

Suggested Solution

Update the function as follows:

func (c *Client) BatchTransaction(
    ctx context.Context,
    signer suiAddress,
    txnParams []map[string]interface{},
    gas *suiObjectID,
    gasBudget types.SafeSuiBigInt[uint64],
)
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

No branches or pull requests

1 participant