Open larry-lmw opened 2 years ago
also getting this
I have the same problem, please do you solve it?
Did you provide an OpenSea API key?
What solved the issue for me is that I replaced the FACTORY_CONTRACT_ADDRESS
assets: [
{
tokenId: optionId,
tokenAddress: FACTORY_CONTRACT_ADDRESS,
// Comment the next line if this is an ERC-721 asset (defaults to ERC721):
schemaName: WyvernSchemaName.ERC1155,
},
with my actual CONTRACT_ADDRESS and NOT the address of the factory.
Any news here? For us the factory usage seems also not to work...same error
Any news here? For us the factory usage seems also not to work...same error
AFAIK factory doesnt work correctly with their example since they changed their whole API
I tried a couple of things, but it seems a factory pattern, or basically minting your NFTs on opensea is currently not working right?
I found a way to deploy a working factory + get the opensea createSellOrder working for it, take look if you still need it: https://gist.github.com/Deathwing/b49c03c465c17312f8affc536b5ea64d
I tried to build the project and deployed in rinkeby network for creature accessories sale. Everything seemed fine except that trying to run /scripts/creature-accessories/init-sales.js caused error "API Error 404: Not found. Full message was '{"success":false}"
I put here the log file for contracts deployment
Starting migrations...
2_deploy_contracts.js
2_deploy_contracts.js:29==> Network rinkeby 2_deploy_contracts.js:30
Deploying 'CreatureAccessory'
Deploying 'LootBoxRandomness'
Deploying 'CreatureAccessoryLootBox'
Deploying 'CreatureAccessoryFactory'
Summary
I put here the code for init_sale.js
const {WyvernSchemaName} = require('opensea-js/lib/types') const HDWalletProvider = require("@truffle/hdwallet-provider"); const opensea = require('opensea-js'); const Network = opensea.Network; const OpenSeaPort = opensea.OpenSeaPort;
/////////////////////// // Variables /////////////////////// const INFURA_API = "xxx"; const ACCOUNT_ADDRESS = "xxx"; const FACTORY_CONTRACT_ADDRESS = "0x19Fadfea71e74DcAE335F244AfeD34F74d46c917"; const MNEMONIC = "xxx"
const provider = new HDWalletProvider({ mnemonic: { phrase: MNEMONIC }, providerOrUrl: "https://rinkeby.infura.io/v3/" + INFURA_API });
const seaport = new OpenSeaPort(provider, { networkName: Network.Rinkeby });
/////////////////////// // More Variables /////////////////////// const FIXED_PRICE = 0.07;
/////////////////////// // Main /////////////////////// async function main() {
}
/////////////////////// // Main Start /////////////////////// main() .then(() => process.exit(0)) .catch(error => { console.error(error); process.exit(1); });