Skip to content

[grpc] do not perform simulate txn on sender if onlyTransactionKind is true - #1136

Merged
hayes-mysten merged 2 commits into
mainfrom
joy/grpc-tx-kind
Jul 10, 2026
Merged

[grpc] do not perform simulate txn on sender if onlyTransactionKind is true#1136
hayes-mysten merged 2 commits into
mainfrom
joy/grpc-tx-kind

Conversation

@joyqvq

@joyqvq joyqvq commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Description

a txKind only build, unlike a txData, has no sender or gas fields. seal lets user build their txn with onlyTransactionKind: true and no sender, then send it to key server which fills in the sender before simulateTransaction

but now SuiGrpcClient resolves every build via simulateTransaction, which falls back to a 0x0 sender even for kind-only builds. so the check will always fail if there is an owned object. while a temp workaround is to set a throwaway sender for the txn, but the real fix should be in the sdk so that the check is disabled for kind-only builds.

Test plan

How did you test the new or updated feature?


AI Assistance Notice

Please disclose the usage of AI. This is primarily to help inform reviewers of how careful they need to review PRs, and to keep track of AI usage across our team. Please fill this out accurately, and do not modify the content or heading for this section!

  • This PR was primarily written by AI.
  • I used AI for docs / tests, but manually wrote the source code.
  • I used AI to understand the problem space / repository.
  • I did not use AI for this PR.

@joyqvq
joyqvq requested a review from a team as a code owner July 10, 2026 14:31
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sui-typescript-docs Ready Ready Preview, Comment Jul 10, 2026 4:02pm

Request Review

@joyqvq
joyqvq temporarily deployed to sui-typescript-aws-kms-test-env July 10, 2026 14:31 — with GitHub Actions Inactive
@joyqvq
joyqvq force-pushed the joy/grpc-tx-kind branch from 07c5bd5 to 97e10d8 Compare July 10, 2026 14:32
@joyqvq
joyqvq temporarily deployed to sui-typescript-aws-kms-test-env July 10, 2026 14:32 — with GitHub Actions Inactive
@joyqvq
joyqvq force-pushed the joy/grpc-tx-kind branch from 97e10d8 to 2491bf8 Compare July 10, 2026 14:47
@joyqvq
joyqvq temporarily deployed to sui-typescript-aws-kms-test-env July 10, 2026 14:47 — with GitHub Actions Inactive
@joyqvq
joyqvq requested review from bmwill and hayes-mysten July 10, 2026 14:49
@joyqvq joyqvq changed the title [grpc] do not perform simulate txn on sender if its onlyTransactionKind [grpc] do not perform simulate txn on sender if onlyTransactionKind is true Jul 10, 2026
…hout a sender

Disable simulation validation checks when resolving onlyTransactionKind builds on
the gRPC and GraphQL clients, and stop leaking the 0x0 resolution sender back into
the transaction data. Fixes the seal use-case where a kind-only build references an
owned object with no sender set.

Also fix graphql-codegen: pin the schema to the committed snapshot instead of
fetching main live, and drop the redundant `typescript` plugin (v6 typescript-operations
double-emits input types). Regenerated queries.ts. Adds an e2e test across all 3 clients.
@hayes-mysten
hayes-mysten merged commit 5028c01 into main Jul 10, 2026
9 checks passed
@hayes-mysten
hayes-mysten deleted the joy/grpc-tx-kind branch July 10, 2026 17:37
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.

2 participants