Giter VIP home page Giter VIP logo

near-pet-shop's People

Contributors

artob avatar gagdiez avatar mikedotexe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

aleanos

near-pet-shop's Issues

Unrecoverable error if user has "bad accounts" in their keystore (.near-credentials/betanet)

I had a bunch of badly named accounts from testing various things.

They were in my /betanet keystore.

https://github.com/near/near-web3-provider/blob/e88c4f82d2fc04ed33e74c75e2b8c6816e803be1/src/index.js#L385

Seems to load all keys and start calling:

https://github.com/near/near-web3-provider/blob/e88c4f82d2fc04ed33e74c75e2b8c6816e803be1/src/index.js#L390

Which just fails when it encounters a badly named account with this error:

AssertionError [ERR_ASSERTION]: nearAccountToEvmAddress must pass in valid accountID
    at utils.nearAccountToEvmAddress (/home/matt/Projects/near/near-pet-shop/node_modules/near-web3-provider/src/utils.js:294:5)
    at Array.map (<anonymous>)
    at NearProvider.routeEthAccounts (/home/matt/Projects/near/near-pet-shop/node_modules/near-web3-provider/src/index.js:390:38)
Truffle v5.1.57 (core: 5.1.57)
Node v14.15.3

Potential solutions:

  • add a helpful (colorful) tip to tell someone to clean up their near-credentials?

  • console.warn but don't error?

Replace README text regarding relayer when it's ready

This section was recently excised in this PR #3 :


Set up trusted relayer

Visit the simple relayer repository and follow directions to run it. This will run a small ExpressJS server locally at port 3000.

Start web app

env NEAR_RELAY_URL=http:127.0.0.1:3000 npm run betanet

This will run a local website. The terminal will display the URL, which is typically:
http://localhost:1234

Once the relayer mentioned gets in better shape let's remember to add this back.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.