Skip to content

Commit

Permalink
Fix safelist request (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebrianchen authored Aug 14, 2024
1 parent bf65715 commit ee25bca
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

### Minor Changes

## 3.4.1

### Minor Changes

- Fixed a bug where the `openSeaMetadata?.safelistRequestStatus` was undefined in the `Nft` object that resulted in a `Cannot read properties of undefined` error (#416)

## 3.4.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alchemy-sdk",
"version": "3.4.0",
"version": "3.4.1",
"description": "Extended Ethers.js SDK for Alchemy APIs",
"author": "Alchemy",
"license": "MIT",
Expand Down
14 changes: 7 additions & 7 deletions src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ export function getNftContractFromRaw(
tokenType: parseNftTokenType(rawNftContract.tokenType),
openSeaMetadata: {
...rawNftContract.openSeaMetadata,
safelistRequestStatus:
rawNftContract.openSeaMetadata?.safelistRequestStatus !== null
? stringToEnum(
rawNftContract.openSeaMetadata.safelistRequestStatus,
OpenSeaSafelistRequestStatus
)
: null
safelistRequestStatus: rawNftContract.openSeaMetadata
?.safelistRequestStatus
? stringToEnum(
rawNftContract.openSeaMetadata.safelistRequestStatus,
OpenSeaSafelistRequestStatus
)
: null
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is autogenerated by injectVersion.js. Any changes will be
// overwritten on commit!
export const VERSION = '3.4.0';
export const VERSION = '3.4.1';

0 comments on commit ee25bca

Please sign in to comment.