Deployed erc721 contract failure but still visible on Etherscan

Today I tried to deploy a contract on the mainnet but something went wrong. I've got this message:

⠧ Saving migration to chain. insufficient funds for gas * price + value

The strange thing is that even though I've got the error the contract can still be found on Etherscan and ETH is deducted from my wallet.

Whenever I try to interact with the contract (via truffle console) I get the message:

contractname has not been deployed to detected network (network/artifact mismatch)

Is there still a way to fix this, or did I loose all my ETH and have to try again?

When you deploy with truffle, you'll deploy the migrations contract first. Maybe it's the migration contract that has been deployed and not your actual contract?

Both seem to be deployed if I check etherscan. I just noticed that Truffle failed to create an artifact for the main contract. Is it possible to recreate the artifact?

I don't remember truffle too well as it has been a long time since I used it but just want to point out a few things:

  1. If you already have it deployed, you don't need the artifact. Artifacts are unique to truffle https://ethereum.stackexchange.com/questions/30457/what-are-artifacts-in-truffle.

  2. To interact with the contract, all you need is the ABI of the token contract and the contract address.

Try running truffle compile to build these artifacts again. https://www.trufflesuite.com/docs/truffle/getting-started/compiling-contracts