use anchor

This commit is contained in:
thesn10
2026-05-22 21:00:42 +02:00
parent 9810270e7e
commit d41b8ea814

View File

@@ -52,23 +52,13 @@ solana airdrop 10
Build order matters — `descro` depends on `descro_ext_resolvers`.
```bash
# Build the resolver registry first
cargo build-sbf --manifest-path programs/descro_ext_resolvers/Cargo.toml
# Then build the escrow program
cargo build-sbf --manifest-path programs/descro/Cargo.toml
anchor build
```
Deploy both to the local validator:
```bash
solana program deploy \
--program-id programs/descro_ext_resolvers/keypair.json \
target/deploy/descro_ext_resolvers.so
solana program deploy \
--program-id programs/descro/keypair.json \
target/deploy/descro.so
anchor deploy
```
> **Note:** if you don't have per-program keypair files, omit `--program-id` and note