Giter Site home page Giter Site logo

anchor-by-example's Introduction

Anchor By Example

Solana Sealevel Framework

Tutorials Discord Chat License

Getting started

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's People

Contributors

0xdeepmehta avatar italoacasas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

anchor-by-example's Issues

Non-custodial escrow example program is not working

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 :)

non-custodial-escrow not working

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

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.