diff --git a/.github/workflows/hardhat_e2e.yml b/.github/workflows/hardhat_e2e.yml index c920d37c..302c241f 100644 --- a/.github/workflows/hardhat_e2e.yml +++ b/.github/workflows/hardhat_e2e.yml @@ -82,9 +82,7 @@ jobs: echo $rpcurl echo $chainid - result=$(forge create --rpc-url $rpcurl --optimize --optimizer-runs 30000 --private-key ${{ secrets.STORY_PRIVATEKEY }} test/foundry/mocks/token/MockERC721.sol:MockERC721 --constructor-args "MockERC" "MockERC" --legacy) - echo $result - erc721=$(echo $result | grep "Deployed to:" | cut -d ":" -f 2 | tr -d ' ') + $erc721=$(forge create --rpc-url $rpcurl --optimize --optimizer-runs 30000 --legacy --json --private-key ${{ secrets.STORY_PRIVATEKEY }} test/foundry/mocks/token/MockERC721.sol:MockERC721 --constructor-args "MockERC" "MockERC" | jq '.deployedTo') echo $erc721 echo "STORY_URL=$rpcurl" >> .env