deprecated-near-examples / near-pet-shop Goto Github PK
View Code? Open in Web Editor NEWCompile and migrate simple Solidity contracts using Truffle to the NEAR EVM
License: MIT License
Compile and migrate simple Solidity contracts using Truffle to the NEAR EVM
License: MIT License
I had a bunch of badly named accounts from testing various things.
They were in my /betanet keystore.
Seems to load all keys and start calling:
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?
Typing truffle test
yields nothing. CMD just hangs.
I think there's a way to have --network near_betanet be the default so users can just type truffle test
and things work.
Is there a reason not to do this?
This section was recently excised in this PR #3 :
Visit the simple relayer repository and follow directions to run it. This will run a small ExpressJS server locally at port 3000.
env NEAR_RELAY_URL=http:127.0.0.1:3000 npm run betanet
Once the relayer mentioned gets in better shape let's remember to add this back.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.