Closed gabspeck closed 1 year ago
I got it working by swapping the keypairIdentity
and seller
/authority
parameters. That is, I changed it from this:
console.log('selling...')
// @ts-ignore
const executionResult = await metaplex.use(keypairIdentity(ownerKeypair)).auctionHouse().sell({
auctionHouse,
authority: ahKeypair,
bid
}).run()
to the code below, passing the authority's private key to the keypairIdentity
plugin and the token owner's keypair as the seller
argument:
const executionResult = await metaplex
.use(keypairIdentity(ahKeypair))
.auctionHouse()
//@ts-ignore
.sell({
auctionHouse,
seller: ownerKeypair,
bid
}).run()
Not sure if that's intended design but it's a bit confusing, I thought the two ways of calling were interchangeable.
Hi there,
Sorry for the late reply.
I'm not sure if this is the issue but when running metaplex.use(keypairIdentity(ownerKeypair))
, you're telling the entire SDK that this is the new wallet they should use for everything by default which could create some unexpected behaviour if you change them frequently.
I'm going to close this for now because the Auction House module is not 100% ready yet but this is great feedback for us to have right now. Thank you.
Hello!
I tried to use the newly available direct sell method, however it seems it is ignoring the authority keypair parameter, making it throw the
Cannot take this action without auction house signing too
error. Below is some reproduction code with private keys removed: