Skip to content

Conversation

amnn
Copy link
Contributor

@amnn amnn commented Sep 19, 2024

Description

Make it possible to represent a transaction that includes a bad type (a type that does not parse correctly). Such transactions will fail to execute but may exist on-chain and so we need to be able to represent them.

To avoid confusion in future, we will perform an early (signing) check for type correctness, preventing more examples of this pattern from appearing on-chain.

GraphQL has also been updated so that it can represent such a transaction without emitting an error.

Test plan

sui$ cargo simtest
sui$ cargo nextest run -p sui-graphql-rpc
sui$ cargo nextest run -p sui-graphql-e2e-tests

Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol: Transactions that include unparseable types will not be signed by validators from protocol 60 onwards.
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL: MoveType can fail to provide a layout or abilities in cases where it represents an unparseable type.
  • CLI:
  • Rust SDK:
  • REST API:

## Description

Make it possible to represent a transaction that includes a bad type (a
type that does not parse correctly). Such transactions will fail to
execute but may exist on-chain and so we need to be able to represent
them.

To avoid confusion in future, we will perform an early (signing) check
for type correctness, preventing more examples of this pattern from
appearing on-chain.

GraphQL has also been updated so that it can represent such a
transaction without emitting an error.

## Test plan

```
sui$ cargo simtest
sui$ cargo nextest run -p sui-graphql-rpc
sui$ cargo nextest run -p sui-graphql-e2e-tests
```
Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 2:56pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 2:56pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 2:56pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 2:56pm

Copy link
Contributor

@tzakian tzakian left a comment

Choose a reason for hiding this comment

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

🚀

@amnn amnn merged commit 6d8ceed into main Sep 19, 2024
47 of 48 checks passed
@amnn amnn deleted the amnn/ident branch September 19, 2024 16:39
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.

3 participants