Skip to content

Commit

Permalink
fix: set signer in Seaport constructor (#76)
Browse files Browse the repository at this point in the history
* fix: set signer in Seaport constructor

* [fix] fix formatting to be .eslintrc.js compliant
  • Loading branch information
isvidler authored Jul 10, 2022
1 parent 386557f commit 21aeed1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensea/seaport-js",
"version": "1.0.3",
"version": "1.0.4",
"description": "[Seaport](https://github.com/ProjectOpenSea/seaport) is a new marketplace protocol for safely and efficiently buying and selling NFTs. This is a JavaScript library intended to make interfacing with the contract reasonable and easy.",
"license": "MIT",
"author": "OpenSea Developers",
Expand Down
3 changes: 3 additions & 0 deletions src/seaport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ export class Seaport {
providerOrSigner instanceof providers.Provider
? providerOrSigner
: providerOrSigner.provider;
this.signer = (providerOrSigner as Signer)._isSigner
? (providerOrSigner as Signer)
: undefined;

if (!provider) {
throw new Error(
Expand Down

0 comments on commit 21aeed1

Please sign in to comment.