Skip to content

Commit 86161f3

Browse files
committed
Add contractLocation to depoyment transaction output
Signed-off-by: Nicko Guyer <[email protected]>
1 parent c898b0c commit 86161f3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

internal/blockchain/common/common.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2022 Kaleido, Inc.
1+
// Copyright © 2023 Kaleido, Inc.
22
//
33
// SPDX-License-Identifier: Apache-2.0
44
//
@@ -78,10 +78,11 @@ type BlockchainReceiptHeaders struct {
7878
}
7979

8080
type BlockchainReceiptNotification struct {
81-
Headers BlockchainReceiptHeaders
82-
TxHash string `json:"transactionHash,omitempty"`
83-
Message string `json:"errorMessage,omitempty"`
84-
ProtocolID string `json:"protocolId,omitempty"`
81+
Headers BlockchainReceiptHeaders `json:"headers,omitempty"`
82+
TxHash string `json:"transactionHash,omitempty"`
83+
Message string `json:"errorMessage,omitempty"`
84+
ProtocolID string `json:"protocolId,omitempty"`
85+
ContractLocation *fftypes.JSONAny `json:"contractLocation,omitempty"`
8586
}
8687

8788
func NewBlockchainCallbacks() BlockchainCallbacks {
@@ -297,6 +298,7 @@ func HandleReceipt(ctx context.Context, plugin core.Named, reply *BlockchainRece
297298
if reply.Headers.ReceiptID == "" || reply.Headers.ReplyType == "" {
298299
return fmt.Errorf("reply cannot be processed - missing fields: %+v", reply)
299300
}
301+
300302
var updateType core.OpStatus
301303
switch reply.Headers.ReplyType {
302304
case "TransactionSuccess":

0 commit comments

Comments
 (0)