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

Update transaction target serialization #126

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

ZhmakAS
Copy link
Collaborator

@ZhmakAS ZhmakAS commented Dec 17, 2024

Update transaction target serialization

  • Resolves: #

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • All commits are signed
  • Tests included/updated or not needed
  • Documentation (manuals or wiki) has been updated or is not required

Update transaction target serialization
@ZhmakAS ZhmakAS requested a review from ihor December 17, 2024 12:51
@@ -109,24 +102,6 @@ func (t *TransactionTarget) Bytes() ([]byte, error) {
if err = builder.AddField(SessionModuleBytesIndex, moduleBytes); err != nil {
return nil, err
}

Copy link
Member

Choose a reason for hiding this comment

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

@ZhmakAS Runtime is serialized now with a calltable instead of the RuntimeTag byte.

assert.NotEmpty(t, res.StoredValue.Package)
assert.NotEmpty(t, res.StoredValue.Package.Versions)
assert.NotEmpty(t, res.StoredValue.Package.LockStatus)
assert.NotEmpty(t, res.StoredValue.SmartContract)
Copy link
Member

Choose a reason for hiding this comment

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

@ZhmakAS , while the schema shows this renaming, the actual RPC response is still with Package property. Therefore, I would not include this change in this PR.

Copy link
Member

@davidatwhiletrue davidatwhiletrue left a comment

Choose a reason for hiding this comment

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

LGTM

@ZhmakAS ZhmakAS merged commit 4296921 into master Dec 19, 2024
2 of 3 checks passed
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.

2 participants