Skip to content

[Advanced Permissions] getSupportedExecutionPermissions chainId should be number type #141

@AyushBherwani1998

Description

@AyushBherwani1998

Description

Currently the getSupportedExecutionPermissions action returns the chain ids in the Hex format which is inline with the new ERC-7715 spec. For external developer facing, we should return the chain ids in number since viem/ wagmi handles the chain ids in the number

This makes the checks much easier for the developers.

Current response

{
  "native-token-stream": {
         "chainIds": [
            "0x1",
             "0xa",
         ],
         "ruleTypes": [
             "expiry"
         ]
    }
}

Expected response

{
  "native-token-stream": {
         "chainIds": [
            1,
            10,
         ],
         "ruleTypes": [
             "expiry"
         ]
    }
}

edit: the chainIds should be number format, not bigint

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions