Skip to content

Commit

Permalink
fix(dapi): keys that end with '-bin' must have Buffer values
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 25, 2024
1 parent 3ca8abe commit e19902c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ async function createGrpcErrorFromDriveResponse(code, info) {
// DPP errors
if (code >= 10000 && code < 50000) {
const consensusMetadata = {
code,
...createRawMetadata(data),
'dash-serialized-consensus-error-bin': serializedConsensusError,
code,
'dash-serialized-consensus-error-bin': Buffer.from(serializedConsensusError),
};

let consensusError;
Expand Down
1 change: 0 additions & 1 deletion packages/rs-sdk/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Definitions of errors
use dapi_grpc::tonic;
use dpp::consensus::ConsensusError;
use dpp::serialization::PlatformDeserializable;
use dpp::version::PlatformVersionError;
Expand Down

0 comments on commit e19902c

Please sign in to comment.