File tree Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -35,26 +35,41 @@ AMOUNT="1"
3535# 1000000 nanomina = 0.001 MINA (small but acceptable fee)
3636FEE=" 1000000"
3737
38+ # Optional memo from environment variable (empty by default)
39+ MEMO=" ${MINA_E2E_TEST_MEMO:- } "
40+
3841echo " Test: Send transaction to same account (e2e test)"
3942echo " Key file: $KEY_FILE "
4043echo " Receiver: $RECEIVER "
4144echo " Amount: $AMOUNT nanomina"
4245echo " Fee: $FEE nanomina"
4346echo " Node endpoint: $NODE_ENDPOINT "
47+ if [ -n " $MEMO " ]; then
48+ echo " Memo: $MEMO "
49+ fi
4450echo " "
4551
4652# Export password for the CLI
4753export MINA_PRIVKEY_PASS=" $PASSWORD "
4854
55+ # Build send command arguments
56+ SEND_ARGS=(
57+ --from " $KEY_FILE "
58+ --to " $RECEIVER "
59+ --amount " $AMOUNT "
60+ --fee " $FEE "
61+ --node " $NODE_ENDPOINT "
62+ --network devnet
63+ )
64+
65+ # Add memo if running in CI
66+ if [ -n " $MEMO " ]; then
67+ SEND_ARGS+=(--memo " $MEMO " )
68+ fi
69+
4970# Run the wallet send command
5071echo " Sending transaction..."
51- SEND_OUTPUT=$( ./target/release/mina wallet send \
52- --from " $KEY_FILE " \
53- --to " $RECEIVER " \
54- --amount " $AMOUNT " \
55- --fee " $FEE " \
56- --node " $NODE_ENDPOINT " \
57- --network devnet 2>&1 || true)
72+ SEND_OUTPUT=$( ./target/release/mina wallet send " ${SEND_ARGS[@]} " 2>&1 || true)
5873
5974echo " Send command output:"
6075echo " $SEND_OUTPUT "
Original file line number Diff line number Diff line change @@ -265,6 +265,7 @@ jobs:
265265 env :
266266 MINA_PRIVKEY_PASS : ${{ secrets.MINA_PRIVKEY_PASS }}
267267 MINA_NODE_ENDPOINT : http://mina-rust-plain-1.gcp.o1test.net/graphql
268+ MINA_E2E_TEST_MEMO : MINA_RUST PR#${{ github.event.pull_request.number }}
268269 run : make test-wallet
269270
270271 build-tests :
You can’t perform that action at this time.
0 commit comments