Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #486 from EOSIO/empty-name
Browse files Browse the repository at this point in the history
Represent empty name as "" to match RPC v1
  • Loading branch information
tbfleming authored Feb 5, 2019
2 parents 0d537ba + c151856 commit c04336f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/eosjs-serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,6 @@ export class SerialBuffer {
result += ".";
}
}
if (result === ".............") {
return result;
}
while (result.endsWith(".")) {
result = result.substr(0, result.length - 1);
}
Expand Down Expand Up @@ -877,7 +874,7 @@ export function createInitialTypes(): Map<string, Type> {
}
},
deserialize(buffer: SerialBuffer, state?: SerializerState) {
if (state.options.bytesAsUint8Array) {
if (state && state.options.bytesAsUint8Array) {
return buffer.getBytes();
} else {
return arrayToHex(buffer.getBytes());
Expand Down

0 comments on commit c04336f

Please sign in to comment.