Skip to content

Commit

Permalink
generate threadID for contract invoke message (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-korotya authored Aug 18, 2023
1 parent e5b9601 commit 8513869
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,13 @@ func CreateContractInvokeRequestWithMessage(
transactionData protocol.TransactionData,
zkRequests ...protocol.ZeroKnowledgeProofRequest,
) protocol.ContractInvokeRequestMessage {
reqID := uuid.New().String()
return protocol.ContractInvokeRequestMessage{
Typ: packers.MediaTypePlainMessage,
Type: protocol.ContractInvokeRequestMessageType,
ID: uuid.New().String(),
From: sender,
Typ: packers.MediaTypePlainMessage,
Type: protocol.ContractInvokeRequestMessageType,
ID: reqID,
ThreadID: reqID,
From: sender,
Body: protocol.ContractInvokeRequestMessageBody{
Reason: reason,
Message: message,
Expand Down

0 comments on commit 8513869

Please sign in to comment.