From e61ed1ee36b0d6c7359c7ad1b1dc5b7958e743ca Mon Sep 17 00:00:00 2001 From: peaceandwhisky Date: Fri, 8 Nov 2024 05:12:20 +0900 Subject: [PATCH] add docs about test on local --- docs/how-to-test.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/how-to-test.md diff --git a/docs/how-to-test.md b/docs/how-to-test.md new file mode 100644 index 0000000..0673a21 --- /dev/null +++ b/docs/how-to-test.md @@ -0,0 +1,32 @@ +## How to test on Local Environment + +### Start the local chain + +```jsx +make devnet-up +``` + +### Build + +```jsx +make build +``` + +### Set the necessary configurations in .env + +```jsx +#Local Testnet +PRIVATE_KEY=91ab9a7e53c220e6210460b65a7a3bb2ca181412a8a7b43ff336b3df1737ce12 +TA_STORE_CONTRACT_ADDRESS=0xd594760B2A36467ec7F0267382564772D7b0b73c +RPC_URL=http://localhost:8545 +``` + +### Execute test + +```jsx +make test-go +``` + +```jsx +make test-solidity +``` \ No newline at end of file