Skip to content

Commit

Permalink
Merge branch 'main' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
rrr523 committed Mar 21, 2024
2 parents b74d640 + 36747f0 commit 9ba7da4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions packages/js-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@
[`d45791`](https://github.com/bnb-chain/greenfield-js-sdk/commit/d45791aa715a5bcef2777c3f2a2213fd8124150e)
Thanks [@rrr523](https://github.com/rrr523)! - feat: Replace zk crypto with ed25519.

## 1.2.3

### Patch Changes

- [#502](https://github.com/bnb-chain/greenfield-js-sdk/pull/502)
[`b074346`](https://github.com/bnb-chain/greenfield-js-sdk/commit/b07434677781c4f224c6b9e828b8e1f1c4eab16a)
Thanks [@rrr523](https://github.com/rrr523)! - fix: Avoid Object override

## 1.2.2

### Patch Changes
Expand Down
14 changes: 7 additions & 7 deletions packages/js-sdk/src/clients/spclient/spApis/getObjectMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ export const parseGetObjectMetaResponse = async (data: string) => {
});
const res = xmlParser.parse(data) as GetObjectMetaResponse;

const Object = res.GfSpGetObjectMetaResponse.Object || {};
if (Object) {
const ObjectTmp = res.GfSpGetObjectMetaResponse.Object || {};
if (ObjectTmp) {
// @ts-ignore
Object.Removed = convertStrToBool(Object.Removed);
Object.UpdateAt = Number(Object.UpdateAt);
Object.DeleteAt = Number(Object.DeleteAt);
ObjectTmp.Removed = convertStrToBool(ObjectTmp.Removed);
ObjectTmp.UpdateAt = Number(ObjectTmp.UpdateAt);
ObjectTmp.DeleteAt = Number(ObjectTmp.DeleteAt);

Object.ObjectInfo = formatObjectInfo(Object.ObjectInfo);
ObjectTmp.ObjectInfo = formatObjectInfo(ObjectTmp.ObjectInfo);
}

res.GfSpGetObjectMetaResponse = {
...res.GfSpGetObjectMetaResponse,
Object,
Object: ObjectTmp,
};

return res;
Expand Down

0 comments on commit 9ba7da4

Please sign in to comment.