-
Notifications
You must be signed in to change notification settings - Fork 18
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
base: vm-lang/upstream-nov-dic-24
Are you sure you want to change the base?
feat(iota-procotol, iota-adapter-tx-tests): Update how we handle type errors in some commands #5664
Conversation
… errors in some commands
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Skipped Deployments
|
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
//# init --addresses test=0x0 --accounts A --protocol-version 71 |
There was a problem hiding this comment.
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:
- Change the protocol version to
--protocol-version 4
- Change the file name to
make_vec_non_existent_type_v4.move
- 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; |
There was a problem hiding this comment.
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.
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.