Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

web3.toUtf8 is not a function #35

Open
@kenzo0202

Description

@kenzo0202

I got error "TypeError: web3.toUtf8 is not a function" in LoginButtonActions.js.
Maybe, web3.js(ver1.0.0) made toUtf8() method deprecated.(https://web3js.readthedocs.io/en/1.0/web3-utils.html?highlight=toutf8#hextoutf8)
So I fixed this problem like below.
I wish you change source code.

var userName = web3.toUtf8(result)

var userName = web3.utils.hexToUtf8(result)

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