diff --git a/auth.go b/auth.go index d323e20..5a4689e 100644 --- a/auth.go +++ b/auth.go @@ -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,