This program demonstrates how to derive addresses. It will use a PDA to store a counter of visits and increment it.
cargo build-sbf
This project includes both:
program/tests
directory.Node.js tests using Bankrun: tests
directory.
# rust tests
cargo test-sbf
# node tests
pnpm build-and-test # this will also build the program
#or
pnpm test # if you have already built the program