Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit ee25bca

Browse files
authored
Fix safelist request (#447)
1 parent bf65715 commit ee25bca

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
### Minor Changes
88

9+
## 3.4.1
10+
11+
### Minor Changes
12+
13+
- Fixed a bug where the `openSeaMetadata?.safelistRequestStatus` was undefined in the `Nft` object that resulted in a `Cannot read properties of undefined` error (#416)
14+
915
## 3.4.0
1016

1117
### Major Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alchemy-sdk",
3-
"version": "3.4.0",
3+
"version": "3.4.1",
44
"description": "Extended Ethers.js SDK for Alchemy APIs",
55
"author": "Alchemy",
66
"license": "MIT",

src/util/util.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ export function getNftContractFromRaw(
7373
tokenType: parseNftTokenType(rawNftContract.tokenType),
7474
openSeaMetadata: {
7575
...rawNftContract.openSeaMetadata,
76-
safelistRequestStatus:
77-
rawNftContract.openSeaMetadata?.safelistRequestStatus !== null
78-
? stringToEnum(
79-
rawNftContract.openSeaMetadata.safelistRequestStatus,
80-
OpenSeaSafelistRequestStatus
81-
)
82-
: null
76+
safelistRequestStatus: rawNftContract.openSeaMetadata
77+
?.safelistRequestStatus
78+
? stringToEnum(
79+
rawNftContract.openSeaMetadata.safelistRequestStatus,
80+
OpenSeaSafelistRequestStatus
81+
)
82+
: null
8383
}
8484
});
8585
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This file is autogenerated by injectVersion.js. Any changes will be
22
// overwritten on commit!
3-
export const VERSION = '3.4.0';
3+
export const VERSION = '3.4.1';

0 commit comments

Comments
 (0)