Skip to content

Commit

Permalink
fix: update response encoding to base64
Browse files Browse the repository at this point in the history
  • Loading branch information
keiff3r committed Sep 18, 2024
1 parent d127488 commit dc6ea66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/newops/appClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class AppClient {

// Chunk 3: nonce[32] + operation[1]
chunks.push(Buffer.concat([withdrawalDataBuffer.nonce, withdrawalDataBuffer.operation]));

// Chunk 4: data_selector[4] (the first 4 bytes of data)
chunks.push(withdrawalDataBuffer.data.slice(0, 4));

Expand All @@ -249,6 +249,6 @@ export class AppClient {
clientInterpreter,
);

return response.slice(0, 64).toString("hex");
return response.toString("base64")
}
}

0 comments on commit dc6ea66

Please sign in to comment.