Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

"byte" casting function was removed since 0.8.0 #13

Open
@vijoin

Description

@vijoin

This line (see here) is throwing this error: ParserError: Expected primary expression when using the byte casting function

Look at The type byte has been removed. It was an alias of bytes1. in solidity changelog

How to replicate:

  • try to compile with a version 0.8.0 or higher

I tested it with 0.7.6 and compilation passed (isolating the uint2str function)

Solution

use bytes1 instead

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