Skip to content

Approve ERC20 token problem with metamask #215

@AnhNguyenDuc2

Description

@AnhNguyenDuc2

function buildTransaction in src/utils/usecase.ts attach domain string using getTagFromDomain function and when dmain string is empy the domain still attached hashed empty string to calldata cause the trouble when calling approval from Metamask.

Metamask throw : " Invalid token value; should be exactly 64 hex digits long (u256)"

since Metamask check the approval number string tobe exact 64 character.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions