made a simple contract that mints 721 token to an address
contract mint is ERC721URIStorage, BaseRelayRecipient {
string private greeting;
uint256 tokenId;
constructor() ERC721("GameItem", "ITM") {
tokenId = 1;
}
function getTokenId() public view returns (uint256) {
return tokenId;
}
function mintToken() public returns (uint256) {
_mint(_msgSender(), tokenId);
tokenId += 1;
return tokenId;
}
this is what the code looks like but whenever I call the mintToken() function from client-side, instead of minting it to my address that token in minted to the relayers address who made the call on my behalf, is there something that I'm doing wrong?
Also when I call the mintToken() function from the client-side, metamask doesn't popup for me to sign the transaction, instead it just happens and then the token in minted to the relayers contract instead of mine.
Is there something that I doing wrong on the client side?
Is there any way to mint token (gas-less) using biconomy?