fork download
  1. #!/bin/bash
  2. output='Starknet plugin using the active environment. Deploying contract.cairo/contract.json Deploy transaction was sent. Contract address: 0x0296cc83474725ddca19a9feefb3aec3602d9073688a4db6885695320cd2a738 Transaction hash: 0x3f60551591f6abb9c79044ce15de4260eb169af2931abdc279e73f6428fc12d Succeeded'
  3. ADDRESS=$(echo $output | sed -rn 's/.*Contract address: ([^ ]*).*/\1/p')
  4. echo "Address: $ADDRESS"
  5. # => Address: 0x0296cc83474725ddca19a9feefb3aec3602d9073688a4db6885695320cd2a738
Success #stdin #stdout 0.01s 5476KB
stdin
Standard input is empty
stdout
Address: 0x0296cc83474725ddca19a9feefb3aec3602d9073688a4db6885695320cd2a738