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

feat(iota-procotol, iota-adapter-tx-tests): Update how we handle type errors in some commands #5664

Open
wants to merge 6 commits into
base: vm-lang/upstream-nov-dic-24
Choose a base branch
from

Conversation

Dkwcs
Copy link
Contributor

@Dkwcs Dkwcs commented Feb 27, 2025

Description of change

Updates handling of type errors for some PTB commands as we were not
properly converting the error type.

Links to any relevant issues

Fixes #5561 .

Type of change

Choose a type of change, and delete any options that are not relevant.

  • Enhancement (a non-breaking change which adds functionality)

@Dkwcs Dkwcs added the vm-language Issues related to the VM & Language Team label Feb 27, 2025
@Dkwcs Dkwcs self-assigned this Feb 27, 2025
@Dkwcs Dkwcs requested review from a team as code owners February 27, 2025 14:32
Copy link

vercel bot commented Feb 27, 2025

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

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Feb 27, 2025 10:31pm
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Feb 27, 2025 10:31pm
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Feb 27, 2025 10:31pm
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview Feb 27, 2025 10:31pm

@iota-ci iota-ci added the sc-platform Issues related to the Smart Contract Platform group. label Feb 27, 2025
// SPDX-License-Identifier: Apache-2.0


//# init --addresses test=0x0 --accounts A --protocol-version 71
Copy link
Contributor

Choose a reason for hiding this comment

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

This test should check the behaviour that was before setting the convert_type_argument_error option to true.
So, we need to do the following:

  1. Change the protocol version to --protocol-version 4
  2. Change the file name to make_vec_non_existent_type_v4.move
  3. Check the expected result.

@@ -1686,6 +1694,7 @@ impl ProtocolConfig {
}
5 => {
cfg.feature_flags.disallow_new_modules_in_deps_only_packages = true;
cfg.feature_flags.convert_type_argument_error = true;
Copy link
Contributor

@valeriyr valeriyr Feb 27, 2025

Choose a reason for hiding this comment

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

When we change the protocol configuration, it is necessary to add a description in the following section:

// Record history of protocol version allocations here:
...
// Version 5: Disallow adding new modules in `deps-only` packages.
//            Enable proper conversion of certain type argument errors in the execution layer.

P.S. We need to check this description when all the related issues are fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sc-platform Issues related to the Smart Contract Platform group. vm-language Issues related to the VM & Language Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants