npm install
cp .env.example .env.local
Next, run the development server:
npm run dev
Finally, open http://localhost:3000 in your browser to view the website.
Anchor By Example
Home Page: https://examples.anchor-lang.com
npm install
cp .env.example .env.local
Next, run the development server:
npm run dev
Finally, open http://localhost:3000 in your browser to view the website.
The tests for the non-custodial escrow example program are now out of date against the latest @solana/spl-token
package.
Also, there is a superficial mistake here https://github.com/coral-xyz/anchor-by-example/blob/master/programs/non-custodial-escrow/tests/non-custodial-escrow.ts#L112 where the test should instead use program.methods.accept()
per the anchor rust program design.
Could I submit a PR to fix this example? The page here would also need to be updated. https://examples.anchor-lang.com/docs/non-custodial-escrow
Asking in advance before I make the PR :)
error[E0599]: no function or associated item named get
found for struct InitializeBumps
in the current scope
--> programs/non-custodial-escrow/src/lib.rs:12:40
|
12 | escrow.bump = InitializeBumps::get("escrow").unwrap();
| ^^^ function or associated item not found in InitializeBumps
...
97 | #[derive(Accounts)]
| -------- function or associated item get
not found for this struct
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item get
, perhaps you need to implement one of them:
candidate #1: SliceIndex
candidate #2: ZeroCopyAccessor
candidate #3: anchor_lang::solana_program::account_info::Account
There's been an open PR for sea-level attacks here: coral-xyz/anchor#2041
Could be used here instead.
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.