Skip to content

Conversation

@tothtamas28
Copy link
Contributor

No description provided.

Comment on lines +130 to +134
metadata=Metadata(
size=metadata_size,
pointer_offset=0,
origin_size=metadata_size,
),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made this assumption based on the previous version of AllocRevValue.to_kast(), I don't know if it makes sense though.

Copy link
Member

Choose a reason for hiding this comment

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

I think this makes sense, when we decode we won't ever have an offset, and the origin_size should be the same as the size field IIUC.

Comment on lines +143 to +147
metadata=Metadata(
size=actual_size,
pointer_offset=0,
origin_size=actual_size,
),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same here.

@tothtamas28 tothtamas28 marked this pull request as ready for review October 27, 2025 09:01
class NoMetadata(MetadataSize):
def to_kast(self) -> KInner:
return KApply('noMetadata')
return KApply('noMetadataSize')
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for changing this! I encountered a problem when running spl-token proof because of this.

Copy link
Contributor

@Stevengre Stevengre left a comment

Choose a reason for hiding this comment

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

LGTM! I want to merge it to continue the spl proof.

@automergerpr-permission-manager automergerpr-permission-manager bot merged commit 5a2677c into master Oct 27, 2025
7 checks passed
@automergerpr-permission-manager automergerpr-permission-manager bot deleted the metadata-fixes branch October 27, 2025 13:29
automergerpr-permission-manager bot pushed a commit that referenced this pull request Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants