0
votes

I created an Auction House: BkGWsACjXyrxSwqATi8rJzmCbhmTAcjCodBMgfC1pGu2 on devnet on this account: 4xRGFpvEfPF7NBZjZjAh8NMKtXkwNHBwvh3i2oWyNxdG.

When I try to run create_auction_house again to create a new one, I get an error with the following log:

    logs: [
    'Program hausS13jsjafwWwGqZTUQRmWyvyxn9EQpqMwV1PBBmk invoke [1]',
    'Program log: Instruction: CreateAuctionHouse',
    'Program 11111111111111111111111111111111 invoke [2]',
    'Allocate: account Address { address: BkGWsACjXyrxSwqATi8rJzmCbhmTAcjCodBMgfC1pGu2, base: None } already in use',
    'Program 11111111111111111111111111111111 failed: custom program error: 0x0',
    'Program hausS13jsjafwWwGqZTUQRmWyvyxn9EQpqMwV1PBBmk consumed 18536 of 200000 compute units',
    'Program hausS13jsjafwWwGqZTUQRmWyvyxn9EQpqMwV1PBBmk failed: custom program error: 0x0'
]

As it says that the previous AH is already in use, is it possible to setup a new one on the same account?

This is quite specific and needs some more information to properly answer. Based on what you're showing though, CreateAuctionHouse calls Allocate on the auction house account, so you can't redo CreateAuctionHouse on the same address. You'll probably need to configure the existing auction house. - Jon C
I understand that, and that is what I'm wondering. Ideally there should be a way to CreateAuctionHouse for one address. I don't know what more information I can provide than what I've already given above. - ProfLupin