|
1 | | -// Copyright © 2022 Kaleido, Inc. |
| 1 | +// Copyright © 2023 Kaleido, Inc. |
2 | 2 | // |
3 | 3 | // SPDX-License-Identifier: Apache-2.0 |
4 | 4 | // |
@@ -78,10 +78,11 @@ type BlockchainReceiptHeaders struct { |
78 | 78 | } |
79 | 79 |
|
80 | 80 | 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"` |
85 | 86 | } |
86 | 87 |
|
87 | 88 | func NewBlockchainCallbacks() BlockchainCallbacks { |
@@ -297,6 +298,7 @@ func HandleReceipt(ctx context.Context, plugin core.Named, reply *BlockchainRece |
297 | 298 | if reply.Headers.ReceiptID == "" || reply.Headers.ReplyType == "" { |
298 | 299 | return fmt.Errorf("reply cannot be processed - missing fields: %+v", reply) |
299 | 300 | } |
| 301 | + |
300 | 302 | var updateType core.OpStatus |
301 | 303 | switch reply.Headers.ReplyType { |
302 | 304 | case "TransactionSuccess": |
|
0 commit comments