Closed RLaursen closed 3 weeks ago
thanks for the PR! do you have an example of instantiating a signer that has getAddress()? also i don't think we need to modify the tests, just the src you included seems fine
thanks for the PR! do you have an example of instantiating a signer that has getAddress()? also i don't think we need to modify the tests, just the src you included seems fine
Here's an example from our SDK :)
https://docs.stardust.gg/typescript-sdk/signers/ethers-v6/sign-transaction
I added some secrets I used for local testing to my fork, required gha code-quality / test (pull_request)
should pass now I think (I will burn them EOD though)
Is anything else required for this? @ryanio
looks good to me! sorry for the delay, will prepare a release now
Motivation
The SDK does not currently work with
ethers.Signer
objects without anaddress
property.ethers.Signer
objects may asynchronously retrieve their own address via the.getAddress()
method, they do not always have anaddress
property.Solution
Fallback to calling
.getAddress()
inOpenSeaSDK._getAvailableAccounts
Open Questions
Are the added tests sufficient/desired?