Skip to content

[Feature Request] Allow serializing / deserializing complex structs #626

Description

@kaw2k

🚀 Feature Request Description

We need to serialize complex structs for use in permissioned signer.

Additional context

Base branch for the permissioned signer work is permissioned-signer. This is working off of Philip's account-abstraction-prod branch. The branch has one test enabled that repro's the issue.

For context, we are trying to interface with the following move function via script composer: add_permissioned_handle. This function accepts DelegationKey and a RateLimiter.

Here is how we parse the DelegationKey and RateLimiter in the ts-sdk:

When calling add_permissioned_handle, the following error is thrown when the DelegationKey serialized:

Unsupported struct input type for argument 1, type '0x1::permissioned_delegation::DelegationKey'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions