e2e-tests/solana: fix race condition w/ writing confirmed transaction to file

This commit is contained in:
Ryan Heywood 2024-12-16 16:26:29 -05:00
parent 44aef0ca99
commit 00d7f18eb3
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 2 additions and 1 deletions

View File

@ -22,4 +22,5 @@ read _
echo "Creating and signing transaction"
icepick sol transfer-token "$token_amount" "$token_address" "$to_address" "$from_address" | icepick sol sign "$blockhash" > /data/output.json
icepick sol transfer-token "$token_amount" "$token_address" "$to_address" "$from_address" | icepick sol sign "$blockhash" > /data/output.json.tmp
mv /data/output.json.tmp /data/output.json