Skip to content

Commit

Permalink
Use last index for derivnation instead of 3rd
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly committed Nov 22, 2024
1 parent d21a6fe commit 0113c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tx-gen/gen-deposits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ for r in $random_u32; do
acct_id=$((r % 10 ))

# derive public address
account_address=$(cat root.prv | cardano-address key child "1852H/1815H/${acct_id}H/0/0" | cardano-address key public --with-chain-code | cardano-address address payment --network-tag preprod)
account_address=$(cat root.prv | cardano-address key child "1852H/1815H/0H/0/${acct_id}" | cardano-address key public --with-chain-code | cardano-address address payment --network-tag preprod)

# generate an amount of ADA between 100 and 10000, in lovelaces (x 1000000)
rand=$(dd if=/dev/urandom count=4 bs=1 2> /dev/null | od -t u4 | tr -s ' ' | cut -d ' ' -f2 | head -1)
Expand Down

0 comments on commit 0113c45

Please sign in to comment.