- Create a test wallet. This can be done by running the command:
solana-keygen new --outfile src/test-wallet-only.json
from thejs/
directory. - Airdrop SOL to the wallet.
- Build and deploy the program (or used the address of the already deployed
program). To change the program address, change
REPRO_ADDRESS
injs/src/constants.ts
. Build withcargo build-bpf
in theprogram/
directory and deploy using the provided command. npm install
all dependences for thejs/
directory. Start the server withnpm start
.- Navigate to
localhost:3000
and click the Reproduce button.
Example error output:
Instruction 0: Program failed to complete
Program 5GXFfGR8VtgYRtYy2RV9RPrirMnhytUPuefiiE5idoau invoke [1]
Program log: Instruction: Initialize liquidity.
Program log: 3HY5r4jyw11VZeqxK8AMrub4yAmeZyWMKtt4orbezeQM
Program log: 11111111111111111111111111111111
Program log: Panicked at: 'called `Result::unwrap()` on an `Err` value: InvalidAccountData'