Skip to content

Commit

Permalink
fix t8ntool empty requests reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Dec 16, 2024
1 parent 122c474 commit 5ad6b23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/vm/test/t8n/t8ntool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,12 @@ export class TransitionTool {

if (requests !== undefined) {
// NOTE: EEST currently wants the raw request bytes, **excluding** the type
output.requests = requests.map((request) => bytesToHex(request.bytes.slice(1)))
output.requests = []
for (const request of requests) {
if (request.bytes.length > 1) {
output.requests.push(bytesToHex(request.bytes.slice(1)))
}
}
}

if (this.rejected.length > 0) {
Expand Down

0 comments on commit 5ad6b23

Please sign in to comment.