Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Conversation

@awelc
Copy link
Collaborator

@awelc awelc commented Jul 12, 2022

Motivation

Max length of the address in core Move is 16 bytes but this is not true for other Move applications where this length can be as long as 32 bytes. This PR modifies Move analyzer (and Move analyzer only) to use longer max length to avoid compilation errors for Move uses outside of Move core.

The max length is by default set to 32 bytes, but build-time options (via Cargo features) have been provided to either set it to core Move default (by resetting the default features of the Move analyzer) or by choosing 20 (or 32) bytes via selecting a specific Cargo feature.

EDIT:

It seems like defaulting to 32. bytes is not going to work without a more major restructuring of core Move code (as the feature the propagates to tests etc.), and this does not seem worthwhile at this point. A simpler option is to update the installation instructions after this PR lands.

Have you read the Contributing Guidelines on pull requests?

Yes

@awelc awelc requested review from damirka and tnowacki July 12, 2022 00:53
@awelc awelc self-assigned this Jul 12, 2022
@tnowacki
Copy link
Member

I think this will be a bigger and bigger tooling headache as time goes on, but happy to keep kicking this can down the road for now.

@awelc awelc merged commit 69c9a00 into move-language:main Jul 13, 2022
nkysg pushed a commit to starcoinorg/move that referenced this pull request Sep 27, 2022
* [Move analyzer] Changed the max address length limit

* Added a forgotten file change

* Removed 32 bytes as default address length
brson pushed a commit to brson/move that referenced this pull request Aug 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants