Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Error while following tutorial, Error message : ' found when reading file. Only ASCII printable characters, tabs (\t), and line endings (\n) are permitted. #1099

Open
LionDigi opened this issue Feb 29, 2024 · 0 comments

Comments

@LionDigi
Copy link

Hello,

I am following the tutorial on https://diem.github.io/move/creating-coins.html

I am stuck and receive an error when trying to execute $ move sandbox publish src/modules

error[E01001]: invalid character
  ┌─ .\src\scripts\test-coin.move:1:9
  │
1 │ script {
' found when reading file. Only ASCII printable characters, tabs (\t), and line endings (\n) are permitted.

Currently I am using Windows 11.

My code for "Coin.move" file

address 0x2 {
    module Coin {

        struct Coin {
            value: u64,
        }

    }
}

I've no idea what is the meaning of the error, any help would be much appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant