소스 검색

Added a README for the checking accounts example

Dadepo Aderemi 3 년 전
부모
커밋
007cedd188
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      basics/checking-accounts/README.md

+ 13 - 0
basics/checking-accounts/README.md

@@ -0,0 +1,13 @@
+# Checking Accounts
+
+Solana Programs should perform checks on instructions to ensure security and that required invariants
+are not being violated.
+
+These checks vary and depend on the exact task of the Solana Program.
+
+In this example we see some of the common checks a Solana Program can perform:
+
+- checking the program ID from the instruction is the program ID of your program
+- checking that the order and number of accounts are correct
+- checking the initialization state of an account
+- etc.