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

Added failing test for serialization #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

aaroncox
Copy link
Member

The authorized_by field during serialization is getting screwed up, and this is affecting iOS users who try to use any action in the system contract that leverages it.

This field appears to be a binary extension, judging by the $ at the end of the type:

{
    "name": "deleteauth",
    "base": "",
    "fields": [
        {
            "name": "account",
            "type": "name"
        },
        {
            "name": "permission",
            "type": "name"
        },
        {
            "name": "authorized_by",
            "type": "name$"
        }
    ]
}

When dealing with any of these actions that use it (unlinkauth, linkauth, deleteauth, etc), the result in Anchor is as follows. The transaction that is getting signed has messed up data, causing the signature to be invalid.

telegram-cloud-photo-size-1-4999417331151121803-x

I believe we need to fix the serializer here, then update Anchor (iOS), in order to resolve this bug.

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.

1 participant