Skip to content

Commit

Permalink
Use ethers.Signer.getAddress() in OpenSeaSDK._getAvailableAccounts() (#…
Browse files Browse the repository at this point in the history
…1491)

* Use getAddress on ethers.Signer as fallback

* ethers.Signer.getAddress() integration test

* Revert "ethers.Signer.getAddress() integration test"

This reverts commit 82c8209.
  • Loading branch information
RLaursen authored Jun 26, 2024
1 parent 8f69506 commit ed45ca7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,8 @@ export class OpenSeaSDK {
(acct) => acct.address,
);
availableAccounts.push(...addresses);
} else if ("getAddress" in this._signerOrProvider) {
availableAccounts.push(await this._signerOrProvider.getAddress());
}

return availableAccounts;
Expand Down

0 comments on commit ed45ca7

Please sign in to comment.