diff --git a/.github/workflows/docker_main.yml b/.github/workflows/docker_main.yml index 04d3cfe7ad..97b9b3864c 100644 --- a/.github/workflows/docker_main.yml +++ b/.github/workflows/docker_main.yml @@ -35,7 +35,7 @@ jobs: BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") echo ::set-output name=BUILD_TAG::$BUILD_TAG echo ::set-output name=BUILD_DATE::$BUILD_DATE - + - name: Read manifest.json id: manifest run: | @@ -48,8 +48,9 @@ jobs: echo ::set-output name=UI_RELEASE::$(cat manifest.json | jq -r '.ui.release') - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: + provenance: false context: ./ file: ./Dockerfile builder: ${{ steps.buildx.outputs.name }} @@ -69,4 +70,4 @@ jobs: SOLIDITY_BUILDER_TAG=${{ steps.manifest.outputs.SOLIDITY_BUILDER_TAG }} BASE_TAG=${{ steps.manifest.outputs.BASE_TAG }} UI_TAG=${{ steps.manifest.outputs.UI_TAG }} - UI_RELEASE=${{ steps.manifest.outputs.UI_RELEASE }} \ No newline at end of file + UI_RELEASE=${{ steps.manifest.outputs.UI_RELEASE }} diff --git a/.github/workflows/docker_release.yml b/.github/workflows/docker_release.yml index 1254895686..f11b57effb 100644 --- a/.github/workflows/docker_release.yml +++ b/.github/workflows/docker_release.yml @@ -25,7 +25,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + - name: Set latest tag if: github.event.action == 'released' run: | @@ -34,17 +34,17 @@ jobs: - name: Set alpha tag if: github.event.action == 'prereleased' && contains(github.ref, 'alpha') run: | - echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:alpha" >> $GITHUB_ENV + echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:alpha" >> $GITHUB_ENV - name: Set beta tag if: github.event.action == 'prereleased' && contains(github.ref, 'beta') run: | - echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:beta" >> $GITHUB_ENV + echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:beta" >> $GITHUB_ENV - name: Set rc tag if: github.event.action == 'prereleased' && contains(github.ref, 'rc') run: | - echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:rc" >> $GITHUB_ENV + echo "DOCKER_TAGS=${{ env.DOCKER_TAGS }},ghcr.io/${{ github.repository_owner }}/firefly:rc" >> $GITHUB_ENV - name: Set build tag id: build_tag_generator @@ -67,8 +67,9 @@ jobs: echo ::set-output name=UI_RELEASE::$(cat manifest.json | jq -r '.ui.release') - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: + provenance: false context: ./ file: ./Dockerfile builder: ${{ steps.buildx.outputs.name }} @@ -88,4 +89,4 @@ jobs: SOLIDITY_BUILDER_TAG=${{ steps.manifest.outputs.SOLIDITY_BUILDER_TAG }} BASE_TAG=${{ steps.manifest.outputs.BASE_TAG }} UI_TAG=${{ steps.manifest.outputs.UI_TAG }} - UI_RELEASE=${{ steps.manifest.outputs.UI_RELEASE }} \ No newline at end of file + UI_RELEASE=${{ steps.manifest.outputs.UI_RELEASE }} diff --git a/internal/blockchain/common/common.go b/internal/blockchain/common/common.go index 0da135b7dc..75db07a3e6 100644 --- a/internal/blockchain/common/common.go +++ b/internal/blockchain/common/common.go @@ -1,4 +1,4 @@ -// Copyright © 2022 Kaleido, Inc. +// Copyright © 2023 Kaleido, Inc. // // SPDX-License-Identifier: Apache-2.0 // @@ -78,10 +78,11 @@ type BlockchainReceiptHeaders struct { } type BlockchainReceiptNotification struct { - Headers BlockchainReceiptHeaders - TxHash string `json:"transactionHash,omitempty"` - Message string `json:"errorMessage,omitempty"` - ProtocolID string `json:"protocolId,omitempty"` + Headers BlockchainReceiptHeaders `json:"headers,omitempty"` + TxHash string `json:"transactionHash,omitempty"` + Message string `json:"errorMessage,omitempty"` + ProtocolID string `json:"protocolId,omitempty"` + ContractLocation *fftypes.JSONAny `json:"contractLocation,omitempty"` } func NewBlockchainCallbacks() BlockchainCallbacks { @@ -297,6 +298,7 @@ func HandleReceipt(ctx context.Context, plugin core.Named, reply *BlockchainRece if reply.Headers.ReceiptID == "" || reply.Headers.ReplyType == "" { return fmt.Errorf("reply cannot be processed - missing fields: %+v", reply) } + var updateType core.OpStatus switch reply.Headers.ReplyType { case "TransactionSuccess": diff --git a/manifest.json b/manifest.json index 0185689e4d..4accb159fe 100644 --- a/manifest.json +++ b/manifest.json @@ -6,8 +6,8 @@ }, "evmconnect": { "image": "ghcr.io/hyperledger/firefly-evmconnect", - "tag": "v1.2.1", - "sha": "5f5ada5da90e7e49ba60f82737f7613d6759134248faa363210b74d89996d9b8" + "tag": "v1.2.2", + "sha": "9032e45ea9cee7d881ce88eaea720f450d2ed176e96137feb495c5e7850fab45" }, "fabconnect": { "image": "ghcr.io/hyperledger/firefly-fabconnect",