File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ export class MinaApp extends BaseApp {
228
228
message : "Missing or wrong arguments" ,
229
229
} ;
230
230
}
231
+
231
232
if ( memo && memo . length > 32 ) {
232
233
return {
233
234
signature : null ,
@@ -240,6 +241,7 @@ export class MinaApp extends BaseApp {
240
241
signature : null ,
241
242
returnCode : "-4" ,
242
243
message : "Fee too small" ,
244
+
243
245
} ;
244
246
}
245
247
@@ -365,7 +367,7 @@ export class MinaApp extends BaseApp {
365
367
366
368
// Validate remaining buffer length against message length
367
369
if ( response . length ( ) < messageLength ) {
368
- throw new Error ( " Response buffer too short for message" ) ;
370
+ throw new Error ( ` Response buffer too short for message: expected ${ messageLength } bytes but only ${ response . length ( ) } remaining` ) ;
369
371
}
370
372
371
373
// Finally read the message
You can’t perform that action at this time.
0 commit comments