Hi, Im trying to lazy mint nfts with the rarible plugin and I wind up getting a “Unknown trigger: web3SignV4” when trying to mint the token. I’m not sure how to fix this/debug it.
I’m currently using vue3 + typescript
import * as Moralis from "moralis";
async mintNft() {
const metadata = {
name: "test_nft",
description: "#1",
image: "/ipfs/" + this.hashVal,
};
const toConv = JSON.stringify(metadata);
const jsonFile = new this.$moralis.File("metadata.json", {
base64: Buffer.from(toConv).toString("base64"),
});
await jsonFile.saveIPFS();
const metaDataHash = jsonFile.name().replace(/\.[^/.]+$/, "");
const currUser = this.$moralis.User.current();
const userAddr = currUser?.get("ethAddress");
this.$moralis.Web3.enable();
await this.$moralis.Web3.initPlugins();
const res = await Moralis.Plugins.rarible.lazyMint({
chain: "eth",
userAddress: userAddr,
tokenType: "ERC721",
tokenUri: "ipfs://" + metaDataHash,
royaltiesAmount: 6,
});
console.log(res);
},
}
Update: method seems to return 200 but my metamask doesnt load to sign the transaction which is why i think its failing. not sure why metamask doesnt load though