Skip to content

Commit

Permalink
Merge pull request #12 from caovanthanh203/main
Browse files Browse the repository at this point in the history
README.md: Add Windows support and mention MetaMask issue
  • Loading branch information
matevz authored Jun 10, 2024
2 parents a53f563 + b0c927f commit 2f77d85
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ and store it as an environment variable:
export PRIVATE_KEY=0x...
```

Alternative CMD command for Windows:

```
set PRIVATE_KEY=0x...
```

To deploy the contracts to the [Sapphire Localnet], Testnet or Mainnet, use
one of the following commands:

Expand Down Expand Up @@ -100,3 +106,13 @@ pnpm build-only --base=/my/public/path/
```

Then copy the `dist` folder to a place of your `/my/public/path` location.

## Troubleshooting

When click button Connect Wallet, in some case you will constantly get the error:
`Uncaught (in promise) Error: [useEthereumStore] Request account failed!`

To resolve it, try to open MetaMask and manually connect site:

![MetaMask: Connected sites](docs/manually-connect-site-1.png)
![MetaMask: Manually connect to the current site](docs/manually-connect-site-2.png)
Binary file added docs/manually-connect-site-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/manually-connect-site-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2f77d85

Please sign in to comment.