Skip to content

Commit f032114

Browse files
author
James Browning
committed
Always make policy with address
1 parent 3540f93 commit f032114

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

makePolicy.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
with_addr=$1
4-
53
i=1
64
while [[ -d ./$i ]]
75
do
@@ -14,7 +12,4 @@ cardano-cli address key-gen --verification-key-file $i/policy.vkey --signing-key
1412
echo $(cardano-cli address key-hash --payment-verification-key-file $i/policy.vkey) > $i/keyhash
1513
echo "{\"keyHash\": \"$(cat $i/keyhash)\", \"type\": \"sig\"}" > $i/policy.script
1614
echo $(cardano-cli transaction policyid --script-file $i/policy.script) > $i/policyId
17-
if [[ $with_addr ]]
18-
then
19-
echo $(cardano-cli address build --payment-verification-key-file $i/policy.vkey --testnet-magic $(cat magic)) > $i/policy.addr
20-
fi
15+
echo $(cardano-cli address build --payment-verification-key-file $i/policy.vkey --testnet-magic $(cat magic)) > $i/policy.addr

0 commit comments

Comments
 (0)