From 78393f2be7d9c42f0cef7c3547e92560a4bfddfb Mon Sep 17 00:00:00 2001 From: Nathan Seva Date: Thu, 2 May 2024 16:54:53 -0500 Subject: [PATCH] add description in the call sc --- api/swagger/server/restapi/resource/swagger.yml | 4 ++++ int/api/cmd/execute_function.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/api/swagger/server/restapi/resource/swagger.yml b/api/swagger/server/restapi/resource/swagger.yml index 97f08435d..a763f210d 100644 --- a/api/swagger/server/restapi/resource/swagger.yml +++ b/api/swagger/server/restapi/resource/swagger.yml @@ -62,6 +62,10 @@ paths: fee: $ref: "#/definitions/Amount" description: Set the fee amount that will be given to the block creator. + description: + description: Description of the operation. + type: string + default: "" produces: - application/json responses: diff --git a/int/api/cmd/execute_function.go b/int/api/cmd/execute_function.go index c40df8bc1..e831bae8c 100644 --- a/int/api/cmd/execute_function.go +++ b/int/api/cmd/execute_function.go @@ -78,7 +78,7 @@ func (e *executeFunction) Handle(params operations.CmdExecuteFunctionParams) mid asyncReq, sendOperation.OperationBatch{NewBatch: false, CorrelationID: ""}, &signer.WalletPlugin{}, - "", + params.Body.Description, ) if err != nil { return operations.NewCmdExecuteFunctionInternalServerError().WithPayload(