@@ -109,7 +109,7 @@ export const TransactionManagerApiAxiosParamCreator = function (configuration: C
109
109
* @param {* } [options] Override http request option.
110
110
* @throws {RequiredError }
111
111
*/
112
- txManagerSubmit : async ( body : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > => {
112
+ txManagerSubmit : async ( body : string | Uint8Array , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > => {
113
113
// verify required parameter 'body' is not null or undefined
114
114
assertParamExists ( 'txManagerSubmit' , 'body' , body ) ;
115
115
const localVarPath = `/txmanager` ;
@@ -133,8 +133,8 @@ export const TransactionManagerApiAxiosParamCreator = function (configuration: C
133
133
...headersFromBaseOptions ,
134
134
...options . headers ,
135
135
} ;
136
- localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ;
137
-
136
+ // localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
137
+ localVarRequestOptions . data = typeof body === 'string' ? Buffer . from ( body , 'hex' ) : Buffer . from ( body ) ;
138
138
return {
139
139
url : toPathString ( localVarUrlObj ) ,
140
140
options : localVarRequestOptions ,
@@ -226,7 +226,7 @@ export const TransactionManagerApiFp = function (configuration: Configuration) {
226
226
* @throws {RequiredError }
227
227
*/
228
228
async txManagerSubmit (
229
- body : string ,
229
+ body : string | Uint8Array ,
230
230
options ?: AxiosRequestConfig ,
231
231
) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < string > > {
232
232
const localVarAxiosArgs = await localVarAxiosParamCreator . txManagerSubmit ( body , options ) ;
0 commit comments